HTML - Code Displays As Code, Not Read By Browser - Urgent
Hello,
I am a student and working on a simple first project. All I'm doing right now is writing my code in text edit, saving it as "test.html", and dragging and dropping the file onto Safari/Firefox to view my code. Everything works when I'm at my college's computer lab, but when I'm on my own mac notebook, the files load in the browser as my code. I've tried a variety of samples and checked my preferences, but I can't figure out what I'm doing wrong. Sample code I'm using - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <TITLE>Simple Link Example 2</TITLE> </HEAD> <BODY> <H1 ALIGN="CENTER">Creating Relative Reference Links</H> <HR> <P>Open <A HREF="practice1.html">Practice 1</A>.</P> <P> Open <A HREF="practice2.html">Practice 2</A>.</P> <P>Open <A HREF="practice3.html" TARGET="_blank"> Practice 3</A> in a new window.</P> </BODY> </HTML> Please help! I'm trying to wrap up an assignment and have been banging my head against the wall all night. Thanks! cordelia Similar TutorialsHi There Please could somebody help me with this problem. I have a website http://www.sapokershop.co.za. I would like to add an affiliates banner on a specific position on my site. Currently the Banner code looks like this: <td width="582" style="BACKGROUND-POSITION-Y: bottom; BACKGROUND-IMAGE: url(images/tp_574X67_1.gif); BACKGROUND-REPEAT: no-repeat"> I need to make this a link to the following: </a><br/><a href="http://banner.titanpoker.com/cgi-bin/redir.cgi?id=N&member=sapokershop&profile=maintp"></a> Please could anybody help Hello, For some reason I am getting wierd results. This is my entire HTML page: Code: <style> code { border: 1px solid #999; display: inline; } </style> <code> <span style="color: #000000"> <span style="color: #0000BB"> <?php <br /> </span> <span style="color: #FF8000">// </span> </span> </code> And it returns this: Why does it look like that? I have the CODE tag only once... :S Hello folks , its me again. anyway i got new task for experts.at the moment i am currently looking for some html code /scrip that will once i add it on my site allow me to add comic so other people can read it online. Basically once i add it i will be able to update once new comics is out. Please give me your suggestions/codes and link to other sites that might help me. i would really appreciate it . Best Regards, Medusa. Hi guys, Could you please help me in giving the code that takes data from the fields in HTML form and when submit button is clicked the mail has to go to the intended user through Microsoft office outlook. Please help me... its very urgent Thanks & Regards Karteek Challa hi. i would really appreciate some help here. i am totally new to designing pages but i managed to make this www.cilipi.bravehost.com . Now, what is the problem? I display it in Mozilla and it works great, no mistakes at all but after loading it in Ie everything is messed up, i get activex codes, bcs of my flash...etc etc i really like this site and i beg you, i really beg some guru to check my source code, i am ready to send him a whole page...everything needed to help me out. i am really desperate, having so much fine making this and uploading it...now it looks bad in ie. please, could someone help me? THANK YOU! regards from croatia Hello! I would really like to have the meta tags code which allows one to put a logo or icon in the browser window, right before the URL. Thanks so much! Kathy Hello, I went to make a change on someones website. I was using a different program than I normally do. Anyway... for some reason a bunch of the code isn't showing up. Here's the website: https://www.villagetoyshop.com/ I normally just edit the html, but tried using komposer. I edited the code in komposer, but when I uploaded it a bunch of stuff isn't showing up. I can see it when I view source, but can't figure out why it doesn't appear in the browser. The code that isn't showing up is at the bottom and has the hours, contact info, etc... I didn't make the site and was just trying to help, but am not sure what to do. I have some basic web design knowledge, but am not an expert. Any help would be greatly appreciated. Kevin P.S. I just realized there is a page on the server entitled index2.html (http://www.villagetoyshop.com/index2.html). The index.html is suppose to look similar to that. Hi. Is there any code out there that will detect whether a visitor to a website is using a mobilephone? If they are, I want the code to automatically send them to my mobile version of my site. I'm guessing it maybe somekind of resolution detection??? The BBC website can do this. Does anybody know how? Leroy Coding with HTML + JavaScript can be daunting, especially when you find out some functions/variables available in one browser, are implemented differently in other browsers. Is there a way to make the task of developing independent code easier in terms of JavaScripting? "Use the below code example. <input type=""button"" value=""Close this window"" onclick=""self.close()"">" Who can answer me the question above? Thanks in advance! I have been considering using some DHTML to make an expandable/collapsable block of text.. see:: http://kilbad.com/DEVELOPMENT/expand.php This page does validate at the w3c, when set to strict, as xhtml strict (I think the code has transitional right now), which I am happy about. However, what percentage of browsers will support this feature? I don't know much about dhtml. How do you xhtml purists feel about this code in general?? Thank you so much in advance!! Brendan Hi, When I open an HTML with my browser to see how it looks, instead of what the code should look like showing showing up, the code itself shows up. Sorry if this is a stupid question, I'm quite new to HTML. I use Dreamweaver CS5. This is the code I used: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> well, im using these weird codes to make my site look the way i want... but it only works in some broswers. i need a much more compatible code. any help? ok well i worked this out. but it dosent seem to work properly in some browsers. its all acceptable w3. please help... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML><HEAD><TITLE>Get Lit, A Clothing Company</TITLE> <META http-equiv=content-type content="text/html; charset=ISO-8859-1"> <META name="keywords" content=""> <META name="description" content=""> <STYLE type="text/css"> #main {position:absolute; left: 400px; top: 245px; width: 700px; height: 700px; z-index: 100 } img.floatLeft { float: left; margin: 4px; } img.floatRight { float: right; margin: 4px; } </STYLE> </HEAD> <BODY bgcolor=FFFFFF> <P align=center> <TABLE cellSpacing=0 cellPadding=0 width=900 border=0><TBODY><TR><TD align=center valign="top"></TD></TR><TR><TD align=center valign="top"> <A href="http://www.freewebs.com/stevenwang/home.htm" target=main><IMG alt="" src="http://www.freewebs.com/stevenwang/gohome.gif" border=0></A><IMG alt="" src="http://www.freewebs.com/stevenwang/spacer.gif"><IMG alt="" src="http://www.freewebs.com/stevenwang/spacer.gif"><IMG alt="" src="http://www.freewebs.com/stevenwang/spacer.gif"><A href="http://www.freewebs.com/stevenwang/blog.htm" target=main><IMG alt="" src="http://www.freewebs.com/stevenwang/nav_001.gif" border=0></A><IMG alt="" src="http://www.freewebs.com/stevenwang/spacer.gif"><A href="http://www.freewebs.com/stevenwang/catalog.htm" target=main><IMG alt="" src="http://www.freewebs.com/stevenwang/nav_002.gif" border=0></A><IMG alt="" src="http://www.freewebs.com/stevenwang/spacer.gif"><A href="http://www.freewebs.com/stevenwang/about.htm" target=main><IMG alt="" src="http://www.freewebs.com/stevenwang/nav_004.gif" border=0></A><IMG alt="" src="http://www.freewebs.com/stevenwang/spacer.gif"><A href="http://www.freewebs.com/stevenwang/contact.htm" target=main><IMG alt="" src="http://www.freewebs.com/stevenwang/nav_005.gif" border=0></A><BR><P align=left><IMG alt="" src="http://www.freewebs.com/stevenwang/splice1.gif" class="floatLeft"><P align=right><IMG alt="" src="http://www.freewebs.com/stevenwang/content.gif"></P></TD></TR></TBODY></TABLE> <TABLE cellSpacing=0 cellPadding=0 width=900 border=0><TBODY><TR><TD align=right valign="top"></TD></TR><TR><TD align=right valign="top"><iframe id="main" src="http://www.freewebs.com/stevenwang/home.htm" name="main" style="width:600px;height:600px;margin:0px;" frameborder="0" scrolling=no></iframe></TD></TR></TBODY></TABLE></BODY></HTML> Hello dear friends, i have an problem with text box read only. Using mobile with opera mini 8.65 or 4 and i have try bolt browser and ucweb6 mobile browser anyway i can not control the browsing of the text of my text box because the scrollbar does not work. If someone did know for wich reason ? If not possible to use the scrollbar with mobile browser could someone know how to add in the text box an button so we can browse the text by clicking up or down. I have many search in the internet the right text box with vertical scrollbar but all scrollbar could not be using by mobile browser. If you have a idea please give me your advice billion thanx by advance. I have several links on my site, all in the form of <a href="http://www.mywebsite.com">mywebsite</a> How do I need to change it such that a new instance of the browser is used in which the linked site is displayed. I was curious to find out, where can i find a cool looking shoutbox code where i can put on my message forum? Looking for some neat, and cozy with some advance options. Meaning, i would like to change the colors to match with my forum and stuff. Thanks. Hello! I have a blog on blogger and i want to make a c++ tutorial.. But every time i type "<iostream>" on post, when i see it, it is only "iostream". How can i make a code like the "[code]" from BBcode to cancel the compiling from HTML? Thanx! I have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. Hey all, I'm new here and I have a website i designed. The page appears fine when i go to IE but it's all messed up when I view it using Mozilla. I'm stumped. This is my website: www.secondhandoffroad.com Thanks, |