HTML and CSS Reference
In-Depth Information
<h1>, <h2>, <h3>, <h4>, <h5>, <h6>
Function
Define one of six levels of headers
align
,
class
,
dir
,
id
,
lang
,
onClick
,
onDblClick
,
onKeyDown
,
onKeyPress
,
onKeyUp
,
onMouseDown
,
onMouseMove
,
onMouseOut
,
onMouseOver
,
onMouseUp
,
style
,
title
Attributes
</h1>
,
</h2>
,
</h3>
,
</h4>
,
</h5>
,
</h6>
; never
omitted
End tag
Contains
text
Used in
body_content
The text enclosed within a heading typically is rendered by the browser
uniquely, depending upon the display technology available to it. The
browser may choose to center, format in boldface, enlarge, italicize, un-
derline, or change the color of headings to make each stand out within
the document. And in order to thwart the most tedious writers, often
users themselves can alter how a browser renders the different headings.
Fortunately, in practice most browsers use a diminishing character point
size for the sequence of headers so that
<h1>
text is quite large and
<h6>
text is quite minuscule (see
Figure 4-3
, for example).