NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix a » html element reference

<plaintext> (Plain Text)

This deprecated element from the HTML 2.0 specification renders the enclosed text as plain text and forces the browser to ignore any enclosed HTML. Typically, information affected by the <plaintext> tag is rendered in monospaced font. This element is no longer part of the HTML standard and should never be used.

Syntax (HTML 2; Deprecated Under HTML 4)


Attributes Defined by Internet Explorer

class="class name(s)"(4)
contenteditable="false | true | inherit"(5.5)
dir="ltr | rtl"(4)
disabled="false | true"(5.5)
hidefocus="true | false"(5.5)
id="unique alphanumeric identifier"(4)
lang="language code"(4)
language="javascript | jscript | vbs | vbscript"(4)
style="style information"(4)
title="advisory text"(4)


<head><title>Plaintext Example</title></head>
The rest of this file is in plain text.
Even though this is supposed to be <b>bold</b>, the tags still show. There is no way to turn plain text off once it is on. </plaintext>
does nothing to help. Even </body> and </html> will show up.


Internet Explorer 2, 3, 4, 5, 5.5, 6
Netscape 1, 2, 3, 4, 4.5 – 4.8, 6, 7
Opera 4 – 7


No closing tag for this element is necessary because the browser will ignore all tags after the starting tag.

This element should not be used. Plain text information can be indicated by a file type, and information can be inserted in a preformatted fashion using the pre element.

Most browsers continue to support this tag despite documentation to the contrary.

(X)HTML Elements
CSS Properties
Previous: param Next: pre
< Home | About | Chapters | Examples | Errata | Reference | Site Map >