HTML <plaintext> Tag

The <plaintext> tag tells the browser, that its content must be displayed as an ordinary text without formatting. All tags, nested in this element, are rendered by the browser as part of the text. The content of the <plaintext> tag is represented in monospaced front.

The <plaintext> tag is obsolete, use the <pre> tag instead.

Syntax

The <plaintext> tag is an empty element; the closing tag isn’t required.

Example

<!DOCTYPE html>
<html>
 <head>
    <title>Title of the document</title>
 </head>
  <body>
    <p>The tag content looks like this:</p>
    <plaintext>
    <h1>Main title of the document</h1>
    <p>First paragraph of the text</p>
    <h2>Subheading</h2>
  </body>
</html>

Result

Attributes

The <plaintext> tag supports the Global Attributes.

Browser support

4+