HTML and CSS Reference
In-Depth Information
Name
font-family
Values:
[ <family-name> | <generic-family> ] [, <family-name>| <generic-family>]*
Expansions:
<generic-family>
serif | sans-serif | monospace | cursive | fantasy
Initial value:
User agent-specific
Applies to:
All elements
Inherited:
Yes
Computed value:
Same as declared value
Description:
Defines a font family to be used in the display of an element's text. Note that use of a specific
font family (e.g., Geneva) is wholly dependent on that family being available, either on the
user's computer or thanks to a downloadable font file, and the font family containing the
glyphs needed to display the content. Therefore, using generic family names as a fallback is
strongly encouraged. Font names that contain spaces or nonalphabetic characters should be
quoted to minimize potential confusion. In contrast, generic fallback family names should
neverbe quoted.
Examples:
p {font-family: Helvetica, Arial, sans-serif;}
li {font-family: Times, TimesNR, "New Century Schoolbook",
serif;}
Search WWH ::




Custom Search