W3 3.2y
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y

<PRE>...</PRE>

Description

This element allows you to show preformatted text as it is, using the supplied whitespace of the text.

DTD

<!ELEMENT PRE - - (%inline;)* -(%pre.exclusion;) -- preformatted text -->
<!ATTLIST PRE
  %attrs;                              -- %coreattrs, %i18n, %events --
  >
from the HTML 4.0 DTD, "Copyright © W3C, (MIT, INRIA, Keio). All Rights Reserved."

Attributes

Core attributes: class id style title
Internationalization attributes: dir lang
Events: onclick ondblclick onmousedown onmouseup onmouseover onmousemove onmouseout onkeypress onkeydown onkeyup

W3 3.2n
4.0n
NS 3.0n
4.0y
IE 3.0n
4.0n
TV 1.2n
2.1n
COLS
Specify the maximum number of characters that may be displayed per line.
W3 3.2y
4.0d
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2n
2.1n
WIDTH
Specify the maximum number of characters that may be displayed per line.
W3 3.2n
4.0y
NS 3.0n
4.0y
IE 3.0n
4.0n
TV 1.2n
2.1n
WRAP
This turns wrapping on, so lines that don't fit inside the browser window are wrapped to the next line.

Examples

Source
<PRE width="40">
Filename Size Date Description
--------------------------------------------------------------------------
FILE_ID.DIZ 470 15-03-95 01:00 The latest in software design.
README 1604 17-03-95 15:43
PROGRAM.ZIP 247531 15-03-95 01:00
INSTALL.EXE 19440 15-03-95 01:00
</PRE>
 
Result
Filename        Size    Date              Description
--------------------------------------------------------------------------
FILE_ID.DIZ      470    15-03-95  01:00   The latest in software design.
README          1604    17-03-95  15:43
PROGRAM.ZIP   247531    15-03-95  01:00
INSTALL.EXE    19440    15-03-95  01:00
Statistics