Click to See Complete Forum and Search --> : newbie with HTML basic question


dolly.kremers
02-16-2006, 08:01 PM
Just in the process of learning how to build a WEB page. Put very basic HTML logic in my texteditor and saved it as ".HTML". Using Mac OS X. When opening that HTML file in Safari browser, the "tags" appear with the file, instead of just the contents within the HTML file.
What am I doing wrong?

example below: All the stuff below appears when the file if opened via the browser.

<html>
<head>
<title>My big ole bad page!</title>
</head>
<body>
Hello Johnny!
</body>
</html>

Thanks so much

welsh
02-16-2006, 08:07 PM
when you open the file in safari in the url bar at the top what does it say? is it saying something like yourpage.html.txt? or .something after the .html? if it does then you need to get rid of that extension, i know in notepad on xp you can go to save as you can select "save as file type" and change it to all.

dolly.kremers
02-21-2006, 10:25 PM
I called the file "page1.html"
When I open the file using Safari, I see the following :

file:///Users/dollykremers/Desktop/WEB%20stuff/page1.html

thanks again for your help

jshalcott
02-22-2006, 01:10 AM
try .htm instead .html because some versions of safari, IE, etc. don't support 4 letter extensions :)