< All the HTML Tags >

<plaintext></plaintext>

Video Coming Soon...

  • plaintext

    Tag Type

    block

    Tag Category

    text formatting

    Defines unformatted plain text

    Viewed

    1

    Examples

    1

Definition:

The HTML <plaintext> tag is a deprecated element that was used to define a section of the document where the browser would treat all text as plain text, disregarding any HTML formatting or markup.

When content is enclosed within the <plaintext> tag, the browser stops parsing any further HTML tags until the end of the document or the next block of text. This means that all subsequent content is displayed exactly as it is written, without interpreting any HTML elements.

Although `<plaintext>` was useful in specific contexts where developers wanted to display raw HTML code or other text without formatting, it has fallen out of favor due to its limited application and the introduction of other elements like `<pre>` for preserving whitespace and formatting. As such, it is recommended to use alternative methods for presenting text, especially for modern web development practices, as the `<plaintext>` tag is not supported in HTML5 and may lead to inconsistent behavior across browsers.

Attributes:

Deprecated in HTML5, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default plaintext Example:

Using the <plaintext> tag to display unformatted text.
<plaintext>Plain Text Example</plaintext>

Default plaintext Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…