Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
The HTML Plaintext Element (<plaintext>) renders everything following the start tag as raw text, without interpreting any HTML. There is no closing tag, since everything after it is considered raw text.
<pre> element, which still interprets HTML within, even though that's not what you probably want.<plaintext> element is the first element on the page (other than any non-displayed elements), do not use HTML at all. Configure your server to send your page with the text/plain MIME-type.<pre> element or, if semantically adequate, the <code> element. Be sure to escape any "<", ">" and "&" characters, to avoid inadvertently interpreting content as HTML.<div> element by applying an adequate CSS style using monospace as the generic-font value in a font-family property.This element has no other attributes than the global attributes, common to all elements.
This element implements the HTMLElement interface.
Implementation note: Up to Gecko 1.9.2 inclusive, Firefox implements the interface HTMLSpanElement for this element.
| Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Basic support | No | No | No1 | No | No | No |
| Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
|---|---|---|---|---|---|---|---|
| Basic support | No | No | No | No1 | No | No | No |
1. Before Firefox 4, this element implemented the HTMLSpanElement interface instead of the standard HTMLElement interface.
<pre> and <code> elements to be used instead.<listing> and <xmp> elements, similar to <plaintext> but also obsolete.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/plaintext