HTML <plaintext> Tag

❮ Previous Reference Next ❯

Deprecated: Not Supported in HTML5.

Example

<p>This is outside the plaintext element</p>

<plaintext>
  <p>This is inside the plaintext element</p>
</plaintext>

<p>This is outside the plaintext element</p>

Meaning

The <plaintext> element renders the enclosed text as plain text and forces the browser to ignore any enclosed HTML.

This element is no longer part of the HTML standard and should never be used.

Notes:

Version: HTML 2.0




Standard Syntax

<plaintext>...</plaintext>



Browser Support




Status







Global Attributes

The <plaintext> element also supports the Global Attributes in HTML.


Event Attributes

The <plaintext> element also supports the Event Attributes in HTML.




By Default CSS Value(s)

Most of the browsers will display the <plaintext> element with the following by default value(s)

plaintext {
  font-family: monospace;
  white-space: pre;
}
❮ Previous Reference Next ❯