xmp, listing

Status: Obsolete

The xmp and listing elements are in use in some locations and should be recognized by browsers. New servers should use <pre> instead.

These styles allow text of fixed-width characters to be embedded absolutely as is into the document. The syntax is:

<listing>

...
</listing>

or

<xmp>

...
</xmp>

The text between these tags is to be portrayed in a fixed width font, so that any formatting done by character spacing on successive lines will be maintained. Between the opening and closing tags:

The listing element is portrayed so that at least 132 characters will fit on a line. The XMP elements portrayed in a font so that at least 80 characters will fit on a line but is otherwise identical to listing.


Preceding Section: plaintext
Following Section: HTML Document Type Definitions
Parent Section: Obsolete HTML Features
Contents of HyperText Markup Language