The <LISTING>
element can be used to presents blocks of text in fixed-width font, and so is suitable for text that has been formatted on screen. As such, it is similar to the <PRE>
and <XMP>
elements, but has a different syntax.
Typically, it will render as fixed width font with white space separating it from other text. It should be rendered such that 132 characters fit on the line.
For example :
Some might say <LISTING> that two heads </LISTING> are better than one
Would render as:
Some might saythat two heads are better than one
NOTE : Netscape will translate any special characters included within <LISTING>
elements. I.e. if characters such as <, > etc. are used, they will be translated to < and >. Mosaic and Internet Explorer treat the text contained within the elements literally.
<LISTING>
can also take the CLASS, ID and STYLE attributes to allow style sheet definitions to be applied to it. For more details of these attributes, see the Style Sheets topic.