IE6 doesn't recognize HTML from notepad

  • Thread starter Thread starter JP to the T
  • Start date Start date
J

JP to the T

Hi folks-- I'm just getting started writing a web page in HTML and have a
book to assist me, but it teaches HTML 4, so I don't know if it's out of
date or what.

The problem is that I wrote an extremely basic html script in windows
notepad, copied verbatim from this book, and saved it as a .txt file. I
followed all the instructions, but when I tried to open it as a web page
from within IE6, it displays the code instead of the page. Any advice on
this? PS here's the code I wrote:

<html>
<head>
<title>Welcome to my website!</title>
</head>
<body>
A bit of text, this is my first ever web page.
</body>
</html>
 
JP said:
Hi folks-- I'm just getting started writing a web page in HTML and have a
book to assist me, but it teaches HTML 4, so I don't know if it's out of
date or what.

The problem is that I wrote an extremely basic html script in windows
notepad, copied verbatim from this book, and saved it as a .txt file. I
followed all the instructions, but when I tried to open it as a web page
from within IE6, it displays the code instead of the page. Any advice on
this? PS here's the code I wrote:

<html>
<head>
<title>Welcome to my website!</title>
</head>
<body>
A bit of text, this is my first ever web page.
</body>
</html>

You need to save it as an .htm or .html file.
 
You have to save it as an .html file

But I can't. From within notepad, I can only save as two file type options,
*.txt, or "All Files." Encoding options are ANSI, Unicode, Unicode big
endian, or UTF-8. This is the "Save As" dialog box, not the Control-O
function. What I've been trying to do is save as .txt, but then rename the
file with a .htm or .html suffix, but this only creates something like
"webpage.html.txt"

Thanks, JP
 
Put webpage.html in the name box.
Change the type to all files.

Or put the name in quotes
"webpage.html"
 
Simple: Right click on the .txt file and rename it as a .htm file. Answer
"yes" to the change extension warning box.

Bill Rothe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top