<H1>, <H2>, <H3><H4>, <H5>, <H6>NN all   IE all   HTML all
<H1>...</H1>, <H2>...</H2>, <H3>...</H3>
H4>...</H4>, <H5>...</H5>, <H6>...</H6>
End Tag: Required
 

HTML defines a series of six heading levels whose associated numbers are intended to signify the relative importance of the section below the heading. The H1 element represents the most important, whereas H6 represents the least important. HTML document parsers could examine a page's tags to create a table of contents based on the headings. This means that for proper document structure, these heading levels should be used in proper sequence, without skipping levels for aesthetic purposes.

It is up to the browsers to determine the font, weight, and other characteristics of each level. Each heading element is rendered on its own line, with no line break or paragraph elements necessary to begin the content of the section titled with the heading. By and large, this pattern applies to other browser versions and operating systems except for Navigator on the Macintosh, whose default H4 and H6 elements render characters wider (albeit shorter) than the H3 and H5 elements preceding them.

You can always override the browser's rendering style for any heading level or individual heading with style sheet rules.

 
Example
<H1>The Solar System</H1>
<P>Floating gracefully within the Milky Way galaxy is our Solar System.  ...</P>
<H2>The Sun</H2>
<P>At a distance of 93,000,000 miles from Earth, the Sun...</P>
<H3>The Planets</H3>
<P>Nine recognized planets revolve around the Sun. ...</P>
<H4>Mercury</H4>
...
 
Object Model Reference
IE [window.]document.all.elementID
ALIGNNN all   IE all   HTML 3.2
ALIGN="where"Optional
 

Determines how the heading is rendered in physical relation to the next outermost container, usually the body. Both Navigator and Internet Explorer support alignment values for center, left, and right alignment. HTML 4.0 adds the possibility of a fully justified alignment, as well.

The ALIGN attribute is deprecated in HTML 4.0 in favor of the text-align: style sheet attribute.

 
Example
<H1 ALIGN="center">Article I</H1>
 
Value
The following table shows values for the ALIGN attribute. Values may be treated as case-insensitive values.
Value NN 4 IE 4 HTML4.0
center
* * *
justify
- - *
left
* * *
right
* * *
 
Default left
 
Object Model Reference
IE [window.]document.all.elementID.align
Hosted by uCoz