HTML Encyclopaedia

The listing tag

This is an obsolete HTML element. The syntax
<listing>
text
</listing>
is used to enclose to text to be presented literally using a constant width (monopitch) type face such as Courier. It has been replaced by <pre>

However here's an example just to show what's been lost

The <listing> tag is used to enclose to text to be presented literally using a constant width (monopitch) type face such as Courier. It has been replaced by <pre> and now the same thing in <pre> tags
The <listing> tag
is used to enclose to text to be presented literally using
a constant width (monopitch) type face such as Courier.
It has been replaced by <pre>

Browsers
ARA ignores the tag. IE3 is interesting, the text is rendered in a mono-pitch type face significantly smaller than that used for <pre> and all interpretation of HTML special character sequences is turned off so a literal < is rendered as such rather than triggering tag interpretation. MOS3 handles it in the same way as IE3 except that the type face used is several points larger than that used for <pre>. NN3 is similar to IE3 except that does process special character sequences within the tag but does not recognise normal HTML tags within the tag. OP2 handles it in exactly the same was as the <pre> tag.


See also <address>, <blockquote>, <plaintext>, <pre>, <xmp> and the general notes on text styles