Use the font-family property to
specify any font (or list of fonts, separated by commas), as shown in
these examples:
h1 {font-family: Arial; }
tt {font-family: Courier, monospace; }
p {font-family: "Trebuchet MS", Verdana, sans-serif; }The value of the property is one or more font names, separated by commas. This allows authors to provide a list of fonts, starting with a first choice, followed by a list of alternates. The user agent (typically a browser) looks for the first font on the user’s machine and, if it is not found, it continues looking for the next font in the list until a match is made.
Note that in the third example, the “Trebuchet MS” is enclosed in
quotation marks. Font names that contain character spaces must be
enclosed in quotation marks (single or double). If the font name appears
in an inline style, be sure to use single quotes if the style attribute uses double (or vice
versa).