Name

<XMP> — NN all IE all HTML <4

Synopsis

<XMP>...</XMP>

End Tag: Required

The XMP element displays its content in a monospace font as a block element, as in computer code listings rendered 80 columns wide. In most browsers, the font size is also reduced from the default size. Browsers observe carriage returns and other whitespace in element content. This element has been long deprecated in HTML and has even been removed from the HTML 4.0 specification. You are encouraged to use the PRE element instead.

Example

<XMP>
&lt;SCRIPT LANGUAGE="JavaScript"&gt;
   document.write("Hello, world.")
&lt;/SCRIPT&gt;
</XMP>

Object Model Reference

IE

[window.]document.all.elementID

Attributes

CLASS

LANG

LANGUAGE

STYLE

TITLE

ID

    

Event Handler Attributes

Handler

NN

IE

HTML

onClick

n/a

4

n/a

onDblClick

n/a

4

n/a

onDragStart

n/a

4

n/a

onHelp

n/a

4

n/a

onKeyDown

n/a

4

n/a

onKeyPress

n/a

4

n/a

onKeyUp

n/a

4

n/a

onMouseDown

n/a

4

n/a

onMouseMove

n/a

4

n/a

onMouseOut

n/a

4

n/a

onMouseOver

n/a

4

n/a

onMouseUp

n/a

4

n/a

onSelectStart

n/a

4

n/a

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.