font-family
Definition
The font-family property specifies a prioritized, comma-delimited list of font names used to render text. From this list, Web browser will use the first font that is installed on the client machine. Font names that contain spaces should be put in single or double quotes. It is good practice to specify a generic font family name such as "serif" or "sans-serif" as the final fall-back in the list of fonts. These generic font family names should not be put into quotes.
Example
body { font-family: "New Century Schoolbook", Times, sans-serif }
Characteristics
Possible values
- Specific name of a font family such as "Helvetica".
- Generic font family name such as:
serif (e.g. Times)sans-serif (e.g. Helvetica)monospace (e.g. Courier)
inherit- Use the same computed value as the parent element for this property.
Default value
Depends on Web browser
Applies to
All elements
Inherited
Yes
See also