PRE (Preformatted Text) TAG and ATTRIBUTES

<PRE></PRE>

This element is used to indicate that the enclosed text is preformatted, meaning that spaces, returns, tabs, and other formatting characters are preserved.  Browsers do, however, acknowledge most HTML elements that are found with the <PRE> element.  Preformatted text is generally rendered by the browsers in a monospaced font.


ATTRIBUTES

CLASS = "class name(s)"
STYLE = "style information"
WIDTH = "number"

EVENTS

onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup


CLASS  See Cascading Style Sheets (CSS) Information.

STYLE  See Cascading Style Sheets (CSS) information.

WIDTH This attribute should be set to the WIDTH of the preformatted region. The value of the attribute should be the number of characters to display. In practice, this attribute is not supported and is dropped under the strict HTML 4.0 spacification.

Back to Top