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> is a deprecated HTML tag, use the <pre> tag instead.


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


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



The <plaintext> tag supports the Global Attributes.

Browser support


Do you find this helpful?

Related articles