HTML and CSS Reference
In-Depth Information
Renders a block of text without any format-
class , dir , id , lang , onClick , onDblClick ,
onKeyDown , onKeyPress , onKeyUp , onMouseDown ,
onMouseMove , onMouseOut , onMouseOver ,
onMouseUp , style , title , width
</pre> ; never omitted
End tag
Used in
Authors most often use the <pre> formatting tag when the integrity of
columns and rows of characters must be retained; for instance, in tables
of numbers that must line up correctly. Another application for <pre> is to
set aside a blank segmenta series of blank linesin the document display,
perhaps to clearly separate one content section from another or to tem-
porarily hide a portion of the document when it first loads and is rendered
by the user's browser.
Tab characters have their desired effect within the <pre> block, with tab
stops defined at every eighth character position. We discourage their use,
however, because tabs aren't consistently implemented among the vari-
Search WWH ::

Custom Search