HTML Encyclopaedia

The xmp tag

This is an obsolete HTML element. The syntax
<xmp>
text
</xmp>
is used to enclose to text to be presented literally using a constant width (monopitch) type face such as Courier. It also causes a paragraph break.

It has the useful property uncommemorated by the HTML 3.2 standard of causing all mark up interpretation to be turned off, at least as far as both Microsoft Internet Explorer 3 and Netscape 3.0 are concerned.

Here's an example

Here's a <br> tag and here's an <xmp> tag 4 spaces at start An ampersand --> & Here's the HTML
<xmp>
Here's a <br> tag and here's an <xmp> tag
    4 spaces at start
    An ampersand --> &
</xmp>

See also <address>, <blockquote>, <listing>, <plaintext>, <pre> and the general notes on text styles