Learning HTML

October 1, 2002 - 0:0
Edit, Save & View Cycle As you continue to add to your web document(s), it is important to preview your work in a browser such as Netscape Navigator or Microsoft Internet Explorer. To preview your work, open a web browser and do the following: In Netscape Navigator: 1. Click on the menu labeled "File ."

2. Locate the menu option, "Open Page . " 1. In the "Open Page" dialog box, click on the "Choose File ." button and locate your web document. Ensure that the "Navigator" button option is clicked as you want to preview the work in the browser window. 2. Once you have chosen the file click on "Open" In Microsoft Internet Explorer: 1. Click on the menu labeled "File ." Locate the menu option, "Open ."

1. In the "Open" dialog box, click on the "Browse ." button and locate your web document. Click "OK" once you have selected your file.

Once you have opened and previewed your work in a web browser, you can continue working by adding to and editing the html file, saving the file with the changes and then viewing the changed file.

You will be more productive if you do not close your web browsers; simply minimize them and continue working. When you want to preview your work again: o save your html file's changes o switch to one of your browsers o hold down the

[SHIFT] key o in Netscape, click on the button labeled "RELOAD" o in IE click on the button labeled "REFRESH" The web browser will load the same document but with the new revisions. This process is the Edit, Save and View cycle.

Chapter 2 - Exercise 1 The goal of this exercise is to familiarize you with using the concepts discussed in Chapter 2.

Procedure 1. Start Notepad.

2. Create the following HTML page: XYZ Corporation BODY BGCOLOR="#FFFFFF"> This will set your documents background color to white. (Older browsers default to gray) 3. Save your file - call it index.htm. Save it in the C:\HTMLFILES\Exercises directory.

4. Preview your file. View your file in Navigator, IE and any other browser that you have installed and are using. Review Questions 1. What are the advantages of using a text editor instead of a full-blown word processor? 2. What does the TITLE element do? 3. What attribute controls the document's background color? 4. How are colors expressed as attribute values? 5. What does the BACKGROUND attribute do?