<p>Does anyone remember the <code>XMP</code> tag?</p>

<p>What was it used for and why was it deprecated?</p>

[{'answer_id': 4549, 'author': 'graham.reeds', 'author_id': 342, 'author_profile': 'https://Stackoverflow.com/users/342', 'pm_score': 6, 'selected': True, 'text': '<p>A quick Google search on W3C reveals that <code>XMP</code> was introduced for displaying <strong>preformatted text</strong> in HTML 3.2 and earlier. When W3C deprecated the <code>XMP</code> tag, it suggested using the <code>PRE</code> tag as a preferred alternative.</p>\n\n<p>Update: <a href="http://www.w3.org/TR/REC-html32#xmp" rel="noreferrer">http://www.w3.org/TR/REC-html32#xmp</a>, <a href="http://www.w3.org/MarkUp/html-spec/html-spec_5.html#SEC5.5.2.1" rel="noreferrer">http://www.w3.org/MarkUp/html-spec/html-spec_5.html#SEC5.5.2.1</a></p>\n'}, {'answer_id': 5252111, 'author': 'mplungjan', 'author_id': 295783, 'author_profile': 'https://Stackoverflow.com/users/295783', 'pm_score': 1, 'selected': False, 'text': '<p>Still works to show raw html - if you use it in script, break the start tag.</p>\n\n<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">\r\n<div class="snippet-code">\r\n<pre class="snippet-code-js lang-js prettyprint-override"><code>var stuff=\'&lt;xmp\'+\'&gt;this is shown as is&lt;br/&gt;hello&lt;/xmp&gt;\';\r\ndocument.getElementById("x").innerHTML=stuff;</code></pre>\r\n<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="x"&gt;&lt;/div&gt;</code></pre>\r\n</div>\r\n</div>\r\n</p>\n'}, {'answer_id': 8313402, 'author': 'Alohci', 'author_id': 42585, 'author_profile': 'https://Stackoverflow.com/users/42585', 'pm_score': 2, 'selected': False, 'text': '<p>See <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=12235" rel="nofollow">http://www.w3.org/Bugs/Public/show_bug.cgi?id=12235</a></p>\n\n<p>For HTML5. it was, according to the HTML5 editor (comments 11 and 12), a very close call either way.</p>\n'}, {'answer_id': 8981120, 'author': 'Adam F', 'author_id': 855567, 'author_profile': 'https://Stackoverflow.com/users/855567', 'pm_score': 2, 'selected': False, 'text': "<p>I still use the <code>xmp</code> tag for debugging <code>var_dump();</code> in PHP. I just can't remember to use the <code>pre</code> tag for some reason.</p>\n\n<p>I think it doesn't really matter because if you really want to output text, you should use <code>textarea</code> with the <code>readonly</code> attribute.</p>\n"}, {'answer_id': 11249786, 'author': 'dadinck', 'author_id': 1475519, 'author_profile': 'https://Stackoverflow.com/users/1475519', 'pm_score': 6, 'selected': False, 'text': '<p><code>XMP</code> and <code>PRE</code> differ. Content within <code>PRE</code> tags is formatted as follows:</p>\n\n<ul>\n<li>Content is shown with a fixed font,</li>\n<li>All whitespace is preserved, and</li>\n<li>Each line break begins a new line.</li>\n</ul>\n\n<p>If you want to include special characters such as <code>&lt;</code>, <code>&gt;</code> and <code>&amp;</code> within <code>PRE</code> tags, they must be escaped so that they are not subject to special interpretation by the browser.</p>\n\n<p>In contrast, content within <code>XMP</code> tags does <em>not</em> need to be escaped.</p>\n\n<p>The only character sequence that cannot be included within <code>XMP</code> tags is the <code>XMP</code> end tag (<code>&lt;/XMP&gt;</code>).</p>\n\n<p><code>XMP</code> is still supported by the browsers I have tested. You can try it with <a href="http://dadinck.x10.mx/xmp.html">xmp.html</a>. View the source to see the tags.</p>\n'}, {'answer_id': 13855455, 'author': 'Thomas', 'author_id': 1415603, 'author_profile': 'https://Stackoverflow.com/users/1415603', 'pm_score': 4, 'selected': False, 'text': '<p>XMP does some things that PRE does not support. I still depend on XMP, there is <em>no</em> substitute.</p>\n'}, {'answer_id': 37593882, 'author': 'Phil Busby', 'author_id': 6415119, 'author_profile': 'https://Stackoverflow.com/users/6415119', 'pm_score': 2, 'selected': False, 'text': '<p>I used <code>&lt;textarea&gt;</code>, which puts the html code into a neat box and clearly defines the code as different from the text before or after.</p>\n\n<p><code>&lt;textarea&gt;&lt;b&gt;boldtext&lt;/b&gt;&lt;textarea&gt;</code></p>\n'}, {'answer_id': 45902139, 'author': 'noobninja', 'author_id': 3788772, 'author_profile': 'https://Stackoverflow.com/users/3788772', 'pm_score': 3, 'selected': False, 'text': '<p><code>&lt;xmp&gt;</code> is used with <a href="http://strapdownjs.com/" rel="noreferrer">strapdown.js</a> in formatting markdown notation. The name <em>strapdown</em> combining the terms <em>bootstrap</em> and <em>markdown</em>.</p>\n\n<pre><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;title&gt;Example&lt;/title&gt;\n  &lt;xmp theme="united"&gt;\n## Example\n\n - note one\n - note two\n - note three\n  &lt;/xmp&gt;\n  &lt;script src="http://strapdownjs.com/v/0.2/strapdown.js"&gt;&lt;/script&gt;\n&lt;/html&gt;\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/4545', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/383/']