Preformatted Text

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 PRE element indicates text that has been formatted for the screen and is rendered using a fixed-width font. All characters are interpreted literally and retained in display, including multiple spaces, tabs, carriage returns and linefeeds (all other cases of HTML collapse multiple spaces, tabs, CRs, or linefeeds to a single space.)

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE3 | M | N4B2 | O
%Events%
2 | 3 | 3.2 | 4 | IE4B1 | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O

Specific Attributes
Width
2 | 3 | 3.2 | 4 | IE | M | N | O
Required? No
Description:
This attribute specifies the maximum number of characters for a line and allows the browser to select a suitable font and indentation. Values of 40, 80 and 132 characters should be presented optimally, with other widths being rounded up.
Values: Positive integer values
Example
<pre>
     this     is    a    test
<pre>
Parent Model
%Block Parent%
Content Model
%In-line Content%
Exceptions: <applet> | <basefont> | <big> | <blink> | <font> | <iframe> | <img> | <nobr> | <object> <small> <sub> <sup>
Tips & Tricks
General
Spaces
Tabs
Linefeeds and Carriage Returns
Browser Peculiarities
Boring Copyright Stuff...