Skip to: content, navigation

by Ian Lloyd

face (HTML attribute)

Browser support full matrix
IE5.5+ FF1+ Saf1.3+ Op9.2+
Full Full Full Full
Spec
Depr. Version
Yes HTML 4
face="comma-separated list of font-families"

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:

Example of font face

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

IE5.5Full
6.0Full
7.0Full
Firefox1.0Full
1.5Full
2.0Full
Safari1.3Full
2.0Full
3.0Full
Opera9.2Full
9.5Full

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.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters