Legacy & Obsolete Elements

<xmp>

Obsolete or historical HTML; do not use in new documents. Displayed raw source-like text using special parser behavior. Use pre with code and escaped markup so literal tags do not become elements. The syntax shows old markup for recognition only. The runnable example demonstrates a modern migration pattern, not the obsolete behavior.

Formal Syntax & Structure

html syntaxhtml
<xmp>  <p>Example</p></xmp>

Working Example

Example Snippethtml
<pre><code>&lt;p&gt;Example&lt;/p&gt;</code></pre>
HTML Reference