Legacy & Obsolete Elements
<listing>
Obsolete or historical HTML; do not use in new documents. Displayed preformatted text in legacy HTML. Use pre and optionally code. Escape literal markup characters when displaying source text. 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
<listing>Example code</listing>Working Example
Example Snippethtml
<pre><code><p>Hello</p></code></pre>