face (HTML attribute)

Spec
Depr. Version
Yes HTML 4
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full

Syntax

face="comma-separated list of font-families"

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).

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

Value

List of fonts, comma separated.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full

It causes no compatibility issues, and has excellent support across all tested browsers.

User-contributed notes

There are no comments yet.

Related Products