XHTML has tags to denote headings in the document at up to six different levels.
The largest and most prominent heading is
h1
, then h2
,
continuing down to h6
.
The element's content is the text of the heading.
h1
, h2
,
and Other Header TagsUsage:
Generally, an XHTML page should have
one first level heading (h1
). This can
contain many second level headings (h2
),
which can in turn contain many third level headings. Each
h
element
should have the same element, but one further up the
hierarchy, preceding it. Leaving gaps in the numbering is to
be avoided.n
hn
ElementsUsage:
XHTML supports a single paragraph
element, p
.
A block quotation is an extended quotation from another document that should not appear within the current paragraph.
blockquote
Usage:
XHTML can present the user with three types of lists: ordered, unordered, and definition.
Typically, each entry in an ordered list will be numbered, while each entry in an unordered list will be preceded by a bullet point. Definition lists are composed of two sections for each entry. The first section is the term being defined, and the second section is the definition of the term.
Ordered lists are indicated by the ol
element, unordered lists by the ul
element, and definition lists by the dl
element.
Ordered and unordered lists contain listitems, indicated
by the li
element. A listitem can
contain textual content, or it may be further wrapped in one
or more p
elements.
Definition lists contain definition terms
(dt
) and definition descriptions
(dd
). A definition term can only contain
inline elements. A definition description can contain other
block elements.
ul
and
ol
Usage:
dl
Usage:
Pre-formatted text can be shown to the user exactly as it is in the file. Typically, this means that the text is shown in a fixed font, multiple spaces are not merged into one, and line breaks in the text are significant.
In order to do this, wrap the content in the
pre
element.
pre
For example, the pre
tags could be
used to mark up an email message:
Keep in mind that <
and
&
still are recognized as special
characters in pre-formatted text. This is why the example
shown had to use <
instead of
<
. For consistency,
>
was used in place of
>
, too. Watch out for the special
characters that may appear in text copied from a plain-text
source, like an email message or program code.
Mark up tabular information using the
table
element. A table consists of one or
more table rows (tr
), each containing one
or more cells of table data (td
). Each
cell can contain other block elements, such as paragraphs or
lists. It can also contain another table (this nesting can
repeat indefinitely). If the cell only contains one paragraph
then the p
element is not needed.
table
Usage:
A cell can span multiple rows and columns. To indicate
this, add the rowspan
and/or
colspan
attributes, with values indicating
the number of rows or columns that should be spanned.
rowspan
Usage:
colspan
Usage:
rowspan
and
colspan
TogetherUsage:
This, and other documents, can be downloaded from http://ftp.FreeBSD.org/pub/FreeBSD/doc/
For questions about FreeBSD, read the
documentation before
contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.