The XMP element

by spdustin

HTML

<p>
  Here's another HTML element that isn't really used. Mostly because it's a <a href="https://html.spec.whatwg.org/#non-conforming-features">non-conforming feature</a>, and "must not be used" by authors: the <code>xmp</code> element.
</p>
<p>
  The <code>xmp</code> element switches the parser's context to text-only, which means that anything that looks like markup will be ignored and passed through as-is.
</p>
<p>
  For example, this code:
  <pre>
    &lt;xmp&gt;
      &lt;p&gt;Hello, world!&lt;/p&gt;
    &lt;/xmp&gt;
  </pre>
  renders like this:
</p>
<xmp>
  <p>Hello, world!</p>
</xmp>