Heading Font 1  - <H1>   -  </H1>

Previous- FRAMESET - Frame definition  |  Next-H2 - Heading Font 2

Description
First level heading. The advantage of using heading tags is that FONT elements are not accepted by all browsers, therefore the Heading tags are more likely to display the heading text properly. The align attribute can be used to further determine the output, but this is better handled by the Style attribute, and is therefore deprecated under HTML 4.0 and above. Note that as a logical tag, the results can vary depending upon the browser.
Attributes
NameValuesDescription
aligncenter|left|rightAlignment
classclassnameClass of the element which is used to associate the element with a style sheet.
dirltr|rtlThe direction in which text flows when surrounded by text which flows in different directions.
event_namescript_codeDefines script to run on event such as OnMouseOver
idstringA unique name to identify an element.
langlanguage_typeThe ISO description for the language of the element.
languagejavascript|jscript|vbscript|vbs
stylestringSpecifies style information for the element.
titlestringTitle for element which is often displayed as a tool-tip when the cursor hovers over the element.

Example
<h1>heading one text</h1>
Will be displayed as :

heading one text


Compatability
HTMLNETSCAPEINTERNET EXPLORER
4.1N2N3N4N6IE3IE4IE5IE6
NO YES YES YES NO YES YES NO NO

Previous- FRAMESET - Frame definition  |  Next-H2 - Heading Font 2