HTML - <plaintext> Tag



The HTML <plaintext> tag is used to render all text in the document exactly as it was typed in, including all tags and even the document tags.

This tag ignores all formatting for the rest of the document, displaying all text exactly as is. It cannot be stopped, it cannot be turned off.

The <plaintext> tag is no longer recommended as it is deprecated. Instead of using this tag, we can use the <pre> tag.

Example

<!DOCTYPE html>
<html>
<head>
   <title>HTML plaintext Tag</title>
</head>
<body>
</body>
</html>

On running the above code, the output window will pop up, displaying the text in the title on the webpage

html_deprecated_tags.htm
Advertisements