Language References
HTML 2, 3.2, 4, 4.01, 5
Renders text in a fixed-width font, typically used for examples.
HTML Syntax
<xmp
class = classname
id = value
style = css properties
title = text
event = script
>
The XMP element displays a sequence of literal characters in the browser's default fixed-width font.
XMP is typically used to dsiplay examples.
All white space, line breaks and even text that includes characters that HTML normally interprets, such as the symbols that enclose an HTML tag ( < and > ), are rendered exactly as they appear.
This element is a block element. It starts on a new line, and is preceded by extra space.
This element has been deprecated in favor of the PRE and SAMP elements.
XMP Members
<p>The basic structure of an HTML document is...
<xmp>
<html>
<head> Header info goes here </head>
<body> Body content goes here </body>
</html>
</xmp>
which would render on a Web page as
The basic structure of an HTML document is:
Header info goes here
Body content goes here
CODE, KBD, PRE, SAMP, TT