<H1>, <H2>, <H3>, <H4>, <H5>, <H6> | NN all IE all HTML all |
<H1>...</H1>, <H2>...</H2>, <H3>...</H3> <H4>...</H4>, <H5>...</H5>, <H6>...</H6> | HTML End Tag: Required |
HTML defines a series of six heading levels with associated numbers that 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 can 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 sequence, without skipping levels for aesthetic purposes. It is up to the browsers to determine the default 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. Figure 8-3 shows examples of how Netscape 6 and Internet Explorer 6 renders all six heading levels in Windows. By and large, this pattern applies to other browser versions and operating systems. 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 | |
[window.]document.getElementById(elementID)
|
|
Element-Specific Attributes | |
|
|
Element-Specific Event Handler Attributes | |
None. |
align | NN all IE all HTML 3.2 |
align="where" | Optional |
Determines how the element's text is aligned inside the element's block. Both Navigator and Internet Explorer support alignment values for center, left, and right alignment. Transitional HTML 4 (but not XHTML) adds the possibility of a fully justified alignment for multilined content, as well. The align attribute is deprecated in HTML 4 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. |
|
Default | |
left |
|
Object Model Reference | |
[window.]document.getElementById(elementID).align
|
lang | NN 3 IE 4 HTML 4 |
lang="languageCode" | Optional |
The language being used for the element's attribute values and content. A browser can use this information to assist in proper rendering of content with respect to details such as treatment of ligatures (when supported by a particular font or required by a written language), quotation marks, and hyphenation. Other applications and search engines might use this information to aid the selection of spell-checking dictionaries and the creation of indices. |
|
Example | |
<SPAN lang="de">Deutsche Bundesbahn</SPAN> |
|
Value | |
Case-insensitive language code. |
|
Default | |
Browser default. |
|
Object Model Reference | |
[window.]document.getElementById(elementID).lang
|