Defines the properties for a block of text formatted as code.
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 code elements to the Courier font family and decreases the font size by one:
code {
font-family:"Courier New", Courier, monospace;
font-size: smaller;
}
Remarks
The standard font for code samples is courier or another similar monospace font.


