Listing

End Tag: Required
Support Key: 2* | 3* | 3.2* | 4 | IE1 | M1 | N1 | O2.1
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =
Main Index | Element Tree | Element Index | HTML Support History


What is it?
The Listing element displays all characters "As-Is" in the browser as a fixed-width font. Recommended display of this element is a 132 character line length. Until a closing LISTING tag is encountered, other HTML elements are displayed on screen as text and not evaluated.

The rules for this sort of behavior can have many consequences in parsing techniques, thus the use of this element is strongly discouraged (the Pre element should be used instead.) This element is no longer standard HTML. It is considered "obsolete" in the HTML 2.0 , 3.0 and 3.2 specifications, and is not mentioned in HTML 4.0. It may be implemented by browsers for backward compatibility.

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE3 | M | N4B2 | O3.5
%Events%
2 | 3 | 3.2 | 4 | IE4B1 | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O
Example
<listing>text <tag> text</listing>
Parent Model
NA*
Content Model
NA*
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...