summaryrefslogtreecommitdiff
path: root/devdocs/html/element%2Fxmp.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/html/element%2Fxmp.html
new repository
Diffstat (limited to 'devdocs/html/element%2Fxmp.html')
-rw-r--r--devdocs/html/element%2Fxmp.html61
1 files changed, 61 insertions, 0 deletions
diff --git a/devdocs/html/element%2Fxmp.html b/devdocs/html/element%2Fxmp.html
new file mode 100644
index 00000000..829cf18d
--- /dev/null
+++ b/devdocs/html/element%2Fxmp.html
@@ -0,0 +1,61 @@
+<header><h1>&lt;xmp&gt;</h1></header><div class="section-content"><div class="notecard deprecated" id="sect1"><p><strong>Deprecated:</strong> This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the <a href="#browser_compatibility">compatibility table</a> at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.</p></div></div>
+<h2 id="summary">Summary</h2>
+<div class="section-content">
+<p>The <code>&lt;xmp&gt;</code> <a href="../index">HTML</a> element renders text between the start and end tags without interpreting the HTML in between and using a monospaced font. The HTML2 specification recommended that it should be rendered wide enough to allow 80 characters per line.</p> <div class="notecard note" id="sect2"> <p><strong>Note:</strong> Do not use this element.</p> <ul> <li>It has been deprecated since HTML3.2 and was not implemented in a consistent way. It was completely removed from current HTML.</li> <li>Use the <a href="pre"><code>&lt;pre&gt;</code></a> element or, if semantically adequate, the <a href="code"><code>&lt;code&gt;</code></a> element instead. Note that you will need to escape the '<code>&lt;</code>' character as '<code>&amp;lt;</code>' and the '<code>&amp;</code>' character as '<code>&amp;amp;</code>' to make sure they are not interpreted as markup.</li> <li>A monospaced font can also be obtained on any element, by applying an adequate <a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS</a> style using <code>monospace</code> as the generic-font value for the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-family"><code>font-family</code></a> property.</li> </ul> </div>
+</div>
+<h2 id="attributes">Attributes</h2>
+<div class="section-content"><p>This element has no other attributes than the <a href="../global_attributes">global attributes</a>, common to all elements.</p></div>
+<h2 id="dom_interface">DOM interface</h2>
+<div class="section-content"><p>This element implements the <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement"><code>HTMLElement</code></a> interface.</p></div>
+<h2 id="specifications">Specifications</h2>
+<div class="_table"><table class="standard-table">
+<thead><tr><th scope="col">Specification</th></tr></thead>
+<tbody><tr><td><a href="https://html.spec.whatwg.org/multipage/obsolete.html#xmp">HTML Standard <br><small># xmp</small></a></td></tr></tbody>
+</table></div>
+<h2 id="browser_compatibility">Browser compatibility</h2>
+<div class="_table"><table>
+<thead>
+<tr id="bct-browser-type">
+<th></th>
+<th colspan="6">Desktop</th>
+<th colspan="6">Mobile</th>
+</tr>
+<tr id="bct-browsers">
+<th></th>
+<th>Chrome</th>
+<th>Edge</th>
+<th>Firefox</th>
+<th>Internet Explorer</th>
+<th>Opera</th>
+<th>Safari</th>
+<th>WebView Android</th>
+<th>Chrome Android</th>
+<th>Firefox for Android</th>
+<th>Opera Android</th>
+<th>Safari on IOS</th>
+<th>Samsung Internet</th>
+</tr>
+</thead>
+<tbody><tr>
+<th><code>xmp</code></th>
+<td class="bc-supports-yes">1</td>
+<td class="bc-supports-yes">12</td>
+<td class="bc-supports-yes"><details><summary>1</summary>Before Firefox 4, this element implemented the <code>HTMLSpanElement</code> interface instead of the standard <code>HTMLElement</code> interface.</details></td>
+<td class="bc-supports-yes">Yes</td>
+<td class="bc-supports-yes">15</td>
+<td class="bc-supports-yes">≤4</td>
+<td class="bc-supports-yes">4.4</td>
+<td class="bc-supports-yes">18</td>
+<td class="bc-supports-yes"><details><summary>4</summary>Before Firefox 4, this element implemented the <code>HTMLSpanElement</code> interface instead of the standard <code>HTMLElement</code> interface.</details></td>
+<td class="bc-supports-yes">14</td>
+<td class="bc-supports-yes">≤3.2</td>
+<td class="bc-supports-yes">1.0</td>
+</tr></tbody>
+</table></div>
+<h2 id="see_also">See also</h2>
+<div class="section-content"><ul> <li>The <a href="pre"><code>&lt;pre&gt;</code></a> and <a href="code"><code>&lt;code&gt;</code></a> elements to be used instead.</li> <li>The <a href="plaintext"><code>&lt;plaintext&gt;</code></a> element, similar to <a href="xmp" aria-current="page"><code>&lt;xmp&gt;</code></a> but also obsolete.</li> </ul></div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2005&ndash;2023 MDN contributors.<br>Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.<br>
+ <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xmp" class="_attribution-link">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xmp</a>
+ </p>
+</div>