This page is Out of Date

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

xmp

Summary

(Obsolete) Renders text between the start and end tags without interpreting the HTML in between and using a monospaced font. Non-conforming in HTML5. Use code or pre instead.

Overview Table

DOM Interface
HTMLElement

The element is defined as a RAWTEXT element, and has special handling by a text/html parser for legacy reasons.

Notes

Remarks

Use of this element is no longer recommended. Use the pre or samp element instead. HTML elements within an XMP element render as text, not as HTML-formatted elements.

See also

Other articles

Use instead