...

View Full Version : New at html - Appear a minimal html example



jenran
12-27-2006, 01:36 PM
Good morning!

Merry Christmas to everyone!

I'm new at html and I'm trying to appear an html example using a browser.

I use Windows XP Professional and inside the Local Disk (C:) i have created a text document named Example.html and i have written inside it :

<HTML>
<HEAD>
<TITLE> Title of my page
</TITLE>
</HEAD>
<BODY>
Merry Christmas!!!
</BODY>
</HTML>

Then i open a web browser e.g. microsoft explorer or mozilla
I type on the address bar C:\Example.html

And a small window appears saying: Windows cannot find 'C:\Example.html'.Check the spelling and try again.

Then if i type on the address bar C:\Example.html.txt it shows all the code of the file Example.html

What shall i do in order to get->> Merry Christmas!!! <<- in the browser?

Thanks, in advance!!!

Uzair
12-27-2006, 01:40 PM
Rename ur Example.html.txt file with this Example.html
Remove .txt from the end

jenran
12-27-2006, 01:51 PM
Well in the end there is no .txt extension,i have removed it.

But the browser cannot find Example.html

and it outputs File not found
Firefox can't find the file at /C:/Example.html.
What shall i do?

thanks,in advance!

Uzair
12-27-2006, 01:55 PM
open a new notepad window & paste all ur code there. Then from File menu choose Save As...
type the file name Example.html & click OK.
Now type in the address bar of ur browser C:\Example.html
This will show your MARRY CHRISTMAS

jenran
12-27-2006, 02:10 PM
Thank you very much:)
I did what you said and it worked!

Merry Christmas!

ikilledsanta
12-27-2006, 07:28 PM
I thought with Firefox you had to use file:/// in front of anything stored on your hard drive. When I try to just do C:/, it returns "Firefox doesn't know how to open this address, because the protocol (c) isn't associated with any program."



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum