Writing HTML | About | FAQ | Alumni | Kudos | References | Tags | Lessons | previous | next |

2. Modifying an HTML Document

Now that you have created your first HTML document, you will learn how to swiftly make changes in your document and view the updates within your web browser.

Objectives

After this lesson, you will be able to:

Lesson

Re-opening Your Workspace

Note: If you do not have the document from the previous lesson, download a copy now.

To complete this lesson, you will need to create a second web browser window and re-open the text editor window you used in the first lesson. Here are the steps for re-opening your workspace (remember that the exact name of the menu commands may be different depending which web browser you are using):

  1. If not open, create a new web browser window by selecting New Window from the File menu.
  2. Use the Open File... command from the File menu to find and open the HTML file you created in the previous lesson.
  3. Re-open your text editor program.
  4. In the text editor, open the file ("volc.html") you created in the previous lesson.
  5. NOTE: If you are using Windows 3.1 computer then your file should be named "VOLC.HTM". From now on, we will assume that you can easily re-open your workspace in this manner.

Making Changes in Your HTML Document

  1. Go to the text editor window.
  2. Below the text you typed from the previous lesson, press RETURN a few times and type the following text:
  3. 
              A volcano is a location where magma, 
              or hot melted rock from within a planet, 
              reaches the surface. It may happen violently, 
              in a massive supersonic explosion, or more 
              quietly, as a sticky, slow lava flow. 
    
    Note that this text should be above the </body> and </html> tags at the bottom of your HTML file.

  4. Select Save from the File menu to update the changes in your HTML file.

Reloading the Document in your Web Browser

Return to the web browser workspace where the previous version of your file was displayed. Note that the new text you entered in the previous steps may not yet be visible. To see the changes, use the Reload button or menu item in your web browser. This instructs your web browser to read in the same HTML file and display it with whatever changes have been made. You should now see the new text that you entered.

Note that the web browser ignores all blank lines and extra spaces (carriage returns) that you enter in the HTML file. It will also ignore any extra space characters (beyond the one between words). However, when you are writing HTML, it will help you greatly to separate major sections by some blank lines... when you need to go back and edit content, it makes it easier to locate the correct location to make the changes.

Of course, there will be times that you want your web pages to have blank space between sections (e.g. between paragraphs). You just passed a location in this very page! In Lesson 4 we will learn how to do this.

Drag and Drop Bonus!

There may be an easier way for you to load and view your HTML pages. You will have to arrange your computer desktop so that you can see the icon for your HTML files adjacent to your web browser window. Simply click and drag the icon for your "vol.html" or "vol.htm" file right into your web browser window. Voilà! your page will display if your computer supports drag and drop operations (It works for operating for Macintosh OS 7.5 and Windows 95 or newer).


Check Your Work

Compare your document to this sample of how this document should appear. If your page looks different than the example, review the text you entered in the text editor. Make sure it matches the text instructions in the Making Changes in Your HTML Document section of this lesson.

Review

Review topics for this lesson:

  1. How did you re-open your workspace?
  2. What steps did you use to make changes in your HTML document?
  3. How did you display and view these changes in your web browser?

Independent Practice

As you did in the lesson, modify your own HTML document that you started in the last lesson. Add a few more sentences and see if you can successfully reload the modified document into your web browser.


Coming Next....

Now that you have an understanding of the editing process, we will add big and beautiful section headings to your HTML documents.

GO TO.... | Lesson Index | previous: "Creating HTML" | next: "Headings" |

Writing HTML: Lesson 2: Modifying an HTML Document
©1994-1999 Maricopa Center for Learning and Instruction (MCLI)
Maricopa Community Colleges

The 'net connection at MCLI is Alan Levine
Comments to alan.levine@domail.maricopa.edu

URL: http://www.mcli.dist.maricopa.edu/tut/tut2.html