When the Block.class abbreviation appears
in an element's content models, that element can contain
any of the XHTML block elements.
All block elements represent rectangular areas on the page, as opposed to inline elements, which can start or end in the middle of a line inside a block element.
Here are the block elements in XHTML:
There are six levels of headings:
h1 (first-level headings),
h2,
h3,
h4,
h5, and
h6. For their structure, see
Section 9.1, “The heading elements: h1, h2, h3, …, h6”.
Section 9.4, “The blockquote element: Block-style
quotations”.
Section 9.7, “The ul element: Unnumbered or
“bullet” lists”.
Use an h1 element for a major heading
within your document. You can also use h2
for a minor heading, h3 for a subheading
under a minor heading, and so forth, all the way down to
h6. Here is the content model:
Heading.contents = Common.attrib, Inline.model
element h1 { Heading.contents }
element h2 { Heading.contents }
element h3 { Heading.contents }
element h4 { Heading.contents }
element h5 { Heading.contents }
element h6 { Heading.contents }
Common.attrib
All the heading elements can contain the attributes
described in Section 15.3, “The common attributes: Common.attrib”.
Inline.model
Inside the heading element, use any inline content;
see Section 10, “Inline content: Inline.model”.
Examples:
<h1>Many meetings</h1>
<h2>How to read <cite>Finnegan's Wake</cite></h2>