Name
fontFamily — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
A prioritized list of font families to be used to render the object’s content. One or more font family names may be included in a space-delimited list of property values. If a font family name consists of multiple words, the family name must be inside a set of inner quotes.
Example
document.all.subhead.style.fontFamily = "'Century Schoolbook' Times serif"
Value
Any number of font family names, space delimited. Multiword family
names must be quoted. Recognized generic family names are:
serif
| sans-serif
|
cursive
| fantasy
|
monospace
.
Default
Browser default.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.