The <PLAINTEXT>
element can be used to represent formatted text. As such, it is similar to the <XMP>
and <LISTING>
element. However, the <PLAINTEXT>
element should be an open element, with no closing element. Only Netscape supports this element according to any HTML specification. Internet Explorer and Mosaic will both allow the use of a </PLAINTEXT>
closing element. Netscape will treat the closing element literally and display it.
Typically, it will render as fixed width font with white space separating it from other text.
e.g.
I live<PLAINTEXT>in the rainiest part of the world.
Would render as:
I live
As said above, anything following the opening <PLAINTEXT>
element should be treated as text. Only Netscape behaves like this. Internet Explorer and Mosaic will allow the use of a closing </PLAINTEXT>
element, allowing discrete blocks of <PLAINTEXT>
formatted text to be displayed.
<PLAINTEXT>
can also take the CLASS, ID and STYLE attributes to allow style sheet definitions to be applied to it. For more details of these attributes, see the Style Sheets topic.