Framify
HTML Quick Reference: <h1>

Tag: <hn>

<hn> Syntax

Syntax Diagram for <hn>
Opening Tag Content Closing
Tag
Open Parameter = Value Close
<hn align = left > header
text
</hn>
right
center

where n is an integer between 1 and 6, inclusive.

<hn> Description

"<hn>" is shorthand for "<h1> or <h2> or <h3> or <h4> or <h5> or <h6>", and it is used because the syntax for all the levels of headers is identical. The header text is printed in a bold, non-italicized font whose size depends on the level of heading specified: "<h1>" gives the largest, and "<h6>" gives the smallest.
align
Specifies the horizontal alignment of the heading. The default is left.

<hn> Examples

This markup: <h1>Level-1 Heading</h1> <h2 align=center>Centered Level-2 Heading</h2> <h3 align=right>Right-Justified Level-3 Heading</h3> <h4>A Really Long, Stupendously Lengthy, Level-4 Heading Whose Length Does Nothing But Show How Headings Are Broken Across Lines If Necessary</h4> <h5>Level-5 Heading</h5> <h6>Level-6 Heading</h6> . . .causes the following to be displayed:

Level-1 Heading

Centered Level-2 Heading

Right-Justified Level-3 Heading

A Really Long, Stupendously Lengthy, Level-4 Heading Whose Length Does Nothing But Show How Headings Are Broken Across Lines If Necessary

Level-5 Heading
Level-6 Heading

Last Modified: Thursday, 24-Dec-2009 14:41:27 MST