HTML and CSS Reference
In-Depth Information
Whenever declaring a
font-family
property, always make the final entry in the
list one of the CSS generic fonts:
serif
,
sans-serif
,
monotype
,
fantasy
, or
cursive
. The last two generic fonts are rarely used.
To reach the broadest market, fonts listed as
font-family
values should be commonly available on
PC, Mac, and, if possible, Linux operating systems. Table 7-1 lists some of the most frequently used
font families.
TabLe 7-1:
Common Font Families
FonT FaMiLLL
Arial, Helvetica, sans-serif
“Arial Black”, Gadget, sans-serif
“Comic Sans MS”, cursive
“Courier new”, Courier, monospace
Georgia, “Times new Roman”, Times, serif
“Lucida Console”, Monaco, monospace
“Lucida Sans Unicode”, “Lucida Grande”, sans-serif
“MS Serif”, “new York”, serif
“Palatino Linotype”, “Book Antiqua”, Palatino, serif
Tahoma, Geneva, sans-serif
“Trebuchet MS”, Arial, Helvetica, sans-serif
“Times new Roman”, Times, serif
Verdana, Geneva, sans-serif
Try iT
In this Try It you learn how to set the page font.
Lesson requirements
You will need the file
thoreau.html
, a text editor and a web browser.