HTML and CSS Reference
In-Depth Information
<listing>
Renders a block of text without any format-
ting
Function
Attributes class , style
End tag
</listing> ; never omitted
Contains
literal_text
Used in
block
The only difference between <pre> and <listing> is that no other markup
is allowed within the <listing> tag, so you don't have to replace the liter-
al < , > , and & characters with their entity equivalents in a <listing> block,
as you must inside a <pre> block.
Because the <listing> tag is the same as a <pre width=132> tag, and be-
cause it might not be supported in later versions of the popular browsers,
we recommend that you stay away from using <listing> .
Search WWH ::




Custom Search