The preformatted text element
<pre> presents sections in
fixed-width font, and so is suitable for text which has been
formatted for a teletype by some existing formatting system.
<pre> element may be used with the optional
which is a Level 1 feature. The
width attribute specifies the
maximum number of characters for a line and allows the
presentation system to select a suitable font and indentation.
width attribute is not present, it is recommended that
a width of 80 be assumed. Where
width is supported, it is
recommended that at least widths of 40, 80 and 132 characters
be presented optimally, with other widths being rounded up.
Within preformatted text:
Line boundaries within the text are rendered as a move to the beginning of the next line, except for one immediately following or immediately preceding a tag.
<p> tag should not be used. If found, it should be
rendered as a move to the beginning of the next line.
Anchor elements and character highlighting elements may be used.
Elements which define paragraph formatting (Headings, Address, etc) must not be used.
The ASCII Horizontal Tab (
ht) character must be
interpreted as the smallest positive nonzero number of
spaces which will leave the number of characters so far
on the line as a multiple of 8. Its use is not recommended
An example of using the
<pre> element is:
This is an example line.