Defines the properties for a block of preformatted text.
Browser/User Agent Support
| IE | Netscape | Mozilla | Opera | Safari |
|---|---|---|---|---|
| 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Example
This example sets the font for preformatted elements to the Courier font family and decreases the font size by one:
pre {
font-family:"Courier New", Courier, monospace;
font-size: smaller;
}
Remarks
Since the "pre" tag is often used to designate code samples, you will often set the font for preformatted text to courier or another similar monospace font.


