Listing

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



   Quick Statistics   
End Tag:
   Required
Standards Details:
2.0: Obsolete
3.0/3.2: Deprecated
4.0: Not listed
XHTML: Not listed
XHTML Modules:
NA
CSS 'display' Type:
"block"
CSS Mapping:
font-family: monospace
Default Rendering:
Fixed-width font
Official Docs:
None

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 and beyond. It may be implemented by browsers for backward compatibility.

Common Attributes
%Core%
[2|3|3.2|4] [X1|X1.1] [IE3|M|N4B2|O3.5]
%Accessibility%
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N6.1|O5]
%Events%
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N6.1|O4]
%Language%
[2|3|3.2|4] [X1|X1.1] [IE4|M|N|O]
%Editing%
[2|3|3.2|4] [X1|X1.1] [IE5.5|M|N|O]

Specific Attributes
Align
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O4]
Standards Details: NA
Required? No
Description:
This indicates the horizontal alignment of the content in this block element relative to the browser window.
Values: Left [DEFAULT] | Center | Right
Height
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O4]
Standards Details: NA
Required? No
Description:
This attribute explicitly specifies the height of this block element in pixels.
Values: Positive integers.
SDAForm
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O]
Standards Details: NA
Required? No
Description:
This is an SGML Document Access (SDA) attribute. SDA attributes are designed to transform HTML (and other SGML-based documents) to the ICADD DTD - which is used in creating accessible documents for users with visual disabilities (rendering in Braille, large print, speech synthesis, etc.) The attribute value specifies the name of the element to convert this element to in the SDA element group (in this case the 'Lit' element - "literal or computer text".) SDA also allows attributes and values from the original element to be used in the new SDA element where necessary.
Value: Lit (Denotes 'literal or computer text' in SDA.)
SDAPref
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O]
Standards Details: NA
Required? No
Description:
This is an SGML Document Access (SDA) attribute. SDA attributes are designed to transform HTML (and other SGML-based documents) to the ICADD DTD - which is used in creating accessible documents for users with visual disabilities (rendering in Braille, large print, speech synthesis, etc.) The attribute value specifies content to be added BEFORE the original element content (in this case the string "Listing:&#RE;") when the SDA document is rendered. &#RE; refers to a carriage return in the SDA transform.
Value: "Listing:&#RE;"
Width
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O4]
Standards Details: NA
Required? No
Description:
This attribute explicitly specifies the width of this block element in pixels.
Values: Positive integers.
Example
<listing>text <tag> text</listing>
Parent Model
NA*
Content Model
NA*
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...