Writing HTML | About | FAQ | Tags | back | next |

3. Headings- Six Levels Deep
As you see in this web page, the section headings ("Headings- Six Levels Deep", "Objectives", "Lesson", "HTML Headings" ...) appear as different sizes and, perhaps, different colors and fonts. HTML has codes for designating headings in six levels of significance. Your browser determines the exact font and size for display.
Objectives
After this lesson, you will be able to:
HTML Headings
Headings are achieved in HTML by "tagging" certain chunks of text with heading tags. The format for a HTML heading tag is:
<hN>Text to Appear in Heading</hN>
N is a number from 1 to 6 identifying the heading size. Here are some examples of different heading sizes:
Heading Level 1
Heading Level 2
Heading Level 3
Heading Level 4
Heading Level 5
Heading Level 6
Heading levels range from level 1 (Most Important) to level 6 (Least Important). Like an outline, your heading levels should have logical, consistent order and be parallel.
Placing HTML Headings in Your Document
Re-open your workspace (if not already opened).
<h1>Volcano Web</h1>
<h2>Introduction</h2>
<h2>Volcano Terminology</h2>
<h2>Volcanic Places in the USA</h2>
<h3>Mount St Helens</h3>
<h3>Long Valley</h3>
<h2>Volcanic Places on Mars?</h2>
<h2>Research Project</h2>
<h3>References</h3>
Check Your Work
Compare your work to this sample. If some of your headings do not appear correct, be sure to check that the starting tag and ending tags have the same heading level.
As an optional exercise, take a look at what happens when you make a typographical error. Open your HTML document in the text editor and delete the slash (/) in the <h1> tag, after the header Volcano Web:
<h1>Volcano Web<h1> [missing "/" ---^^]
Save the changes and reload into your web browser. Without the correct ending of the h1 tag, your web browser interprets all of the succeeding text as part of that header! After trying this you should go back to your document and re-insert the slash in the correct spot.
Review
Review topics for this lesson:
Independent Practice
Add at least three headers of different levels to your own WWW document.
Coming Next....
Breaking it up into paragraphs.
| Home | Next Lesson: Breaking it up into paragraphs. |
Copyright �1995-1999 by Michel Degr�ve ([email protected])