|
Writing HTML | About | FAQ | References | Tags | Lessons | previous | next |3. Headings: Six Levels DeepAs 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 provides tags for designating headings in six levels of significance. Your browser determines the exact font and size for display. ObjectivesAfter this lesson, you will be able to:
LessonHTML HeadingsYou created headings in HTML by "tagging" certain chunks of text with heading tags. The format for an HTML heading tag is: <hN>Text to Appear in Heading</hN> where N is a number from 1 to 6 identifying the heading size. Here are some examples of different heading sizes:
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 DocumentNote: If you do not have the working document from the previous lesson download a copy now.
Note that on the computer you are using now, you can use the settings in your web browser to define the fonts and/or size of the headings. For example, on one computer you could have a browser display h1 tags as Times font and 36 point; h2 tags as Helvetica font and 24 point, etc. HTML codes designate only that the headers are of a certain type (h1 to h6); how it is displayed is controlled by the user of the web browser. Check Your WorkCompare 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 Topics
Independent PracticeAdd at least three headers of different levels to your own HTML document. Coming Next....Breaking up text into paragraphs. GO TO.... | Lesson Index | previous: "Modifying HTML" | next: "Paragraphs" |
Writing HTML: Lesson 3: Headings: Six Levels Deep |