face (HTML attribute)
Example
The example below may seem
contrived, but a few years back people really would liberally apply
font elements like this, changing the appearance all
over the place:
<p>This is how you get to make your <font face="Courier New, Courier, monospace">page look crazy</font>. You just keep <font face="Verdana, Arial, Helvetica, sans-serif">changing the font style</font> like a <font face="Geneva, Arial, Helvetica, sans-serif">madman</font></p>
And the effect can be seen here:

Description
The face
attribute allows the author to define one or more different fonts to be
displayed (the browser will display the first font specified, but if that
is not present on the computer, the browser will try the next one in the
list and so on).
Value
List of fonts, comma separated.
Compatibility
| IE | 5.5 | Full |
|---|---|---|
| 6.0 | Full | |
| 7.0 | Full | |
| Firefox | 1.0 | Full |
| 1.5 | Full | |
| 2.0 | Full | |
| Safari | 1.3 | Full |
| 2.0 | Full | |
| 3.0 | Full | |
| Opera | 9.2 | Full |
| 9.5 | Full |
Causes no compatibility issues. It has excellent support across all tested browsers.
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

