Code

Support Key: [2|3|3.2|4] [X1|X1.1] [IE1|M2|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:
HTML: In all 4.x DTDs
XHTML: In all 1.0 and 1.1 DTDs
XHTML Modules:
Text
CSS 'display' Type:
"inline"
CSS Mapping:
font-family: monospace
Default Rendering:
Fixed-width font
Official Docs:
HTML 4.x, XHTML 1.1
What is it?
This virtual style element indicates text that is a sample of computer code. If the code sample contains characters that are reserved in the HTML context (Ampersand, Less Than and Greater Than symbols), they must be escaped using character entities ('&', '<', and '&gt')

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|O5]
%Events%
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N6B1|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
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".)
Value: Lit (Denotes 'literal or computer text' in SDA.)
Markup example and Tests
<code>code segment</code>
Parent Model
%In-line Parent% | %Block Parent%
Content Model
%In-line Content%
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...