The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <PLAINTEXT> | Next Tag: <Q> |


<PRE>

Formats text in a typewriter-like font and renders all white space (carriage returns, tabs, spaces, etc.).

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later
Notes:
  • This tag requires the </PRE> end tag.
Attributes:
CLASS = "Text"
The style sheet class used by the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • You can specify two or more classes; be sure to separate each class name with a space.

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

LANG = "Text"
The language used by the tag's attribute values and text content.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

STYLE = "Text"
The style or styles to use with the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • If you enter multiple style properties, separate each one with a semi-colon (;).

WIDTH = Positive integer
The maximum number of characters per line of text.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later Not supported Not supported

Notes:

Example:
Here's some text with      various white 
space              elements.
<PRE> Here's some text with      various white
space              elements. </PRE>
How It Looks:
Here's some text with various white space elements.
Here's some text with     various white 
space              elements.

| Index | Previous Tag: <PLAINTEXT> | Next Tag: <Q> |