HTML <xmp> tag

Updated: 10/11/2017 by Computer Hope

HTML xmp tagWhen writing in HTML, the <xmp> tag was used to designate that a section of text was an HTML example. Anything typed between its opening and closing tags was not interpreted as HTML and displayed in monospaced font. The following sections contain information about this tag, including an example of its code, as well as related attributes and browser compatibility.

Note: The <xmp> tag is no longer supported. Both the <pre> and <code> tags are more appropriate; CSS may also be used in its place.

Example code

<xmp>Itallic font should be marked up using the <i> and </i> tags.</xmp>

Old Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. The <wbr> tag is no longer supported, but at one time it utilized all of the standard attributes.


Internet Explorer Firefox Safari Opera Chrome
Not Supported Not Supported Not Supported Not Supported Not Supported

Browser, Code, Compatibility, Optimized, Web design terms