
Text and Font Properties
After boxes, text and font properties are the most widely used properties.
Font Name
The font-family property selects the name of the font. It is a good idea to
list several font names in case the preferred font is not available to the
browser. The following example attempts to select a serif font. The list goes
from more specific font (Palatino) to more common ones (Times New
Roman). The list ends with a generic family name for maximal safety:
font-family: Palatino, Garamond, “Times New Roman”, serif;
Generic names (serif, sans-serif, cursive, fantasy, and monospace) select
a typical font for the family.
Figure 6.6 shows the ...