|
Writing HTML | About | FAQ | References | Tags | Lessons | previous | next |2. Modifying an HTML DocumentNow 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. ObjectivesAfter this lesson, you will be able to:
LessonRe-opening Your WorkspaceNote: 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):
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
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. Reloading the Document in your Web BrowserReturn 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 WorkCompare 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. ReviewReview topics for this lesson:
Independent PracticeAs 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 |