Font Family

The font family of a text is set with the font-family property. This property should hold several font names as a "fallback" system. If the browser does not support the first font, it tries the next font. Start with the font you want, and end with a generic family, to let the browser pick a similar font in the generic family, if no other fonts are available. More than one font family is specified in a comma-separated list:

p { font-family: "Times New Roman", Times, serif; }

Note: If the name of a font family is more than one word, it must be in quotation marks, like: "Times New Roman". For a list of commonly used font combinations, just google "Web Safe Font Combinations".

Back button Table of Contents Next button