Learning HTML
Chapter 2 - Creating Your First HTML Document

2.3 Viewing a File in Netscape

As you create HTML documents with a text editor, you may want to check your progress to see how the documents will work with Netscape or Internet Explorer. Besides viewing files over the Internet on a World Wide Web server, browsers like Netscape also allow you to view files that are saved on your own computer's disk drives.

Let's save the Notepad file you have just been working on so we can see what it will look like. Switch back to Notepad and then use the File Save command. Since this is a new file, you'll be prompted for a file name. You'll see a window showing the current directory (probably C:\windows). You can save the file in this directory or change to another directory or drive (just remember where you saved the file). In the File Name box (towards the bottom of the window) enter the name first.html and then click the Save button. The file will be saved.


Notepad File menu.

Note: HTML documents have the extension .html or .htm . In Windows 95/98 you can use the 4 character extension .html , but in Windows 3.1 you would have to use .htm because of the 3 character limit on extensions.

Now switch back to Netscape. To view your file, you'll need to use the File Open command. Before you do, you should know how to get back to this guide. Selecting the "Back" command, which is at the left of the button bar, will take you back to the document you were previously viewing.

To view the document you just created in Netscape, use the File command and select Open Page (or Open File). You will get a standard Windows file box. Use the directory commands (in the upper half of the box) to first go to the root directory (C:\). Then select the directory C:\windows (or whatever directory you used to save your file). Double-click on that directory, and locate your file first.html . Double-click on that file, and you'll see the results of your work (remember to use the "Back" command to return to this guide). Go ahead and try it now!

Did It Work?

Welcome back! Did your first HTML document look like it was supposed to? If not, don't get discouraged. Go back to the Notepad and look over your text carefully. Make sure all your tags use the correct brackets, which are the less than and greater than signs ( < and > ). You should also check that the bold and italics sentences have a beginning and ending tag.

If you find any mistakes, correct them and then save the file again (you won't have to enter a file name this time). Then switch back to Netscape and open your file.

IMPORTANT: Because of the way Netscape works, any changes you make in the file might not be displayed. To make sure you see the changes, use the "Reload" command (found in the middle of the button bar).


Learning HTML
www.dickinson.edu/~dempsey
Last updated 6/8/2001
Copyright © 2001 Paul Dempsey