Lesson 3: Working with CSS properties CHAPTER 4 173
FIGURE 4-8 he HSL color wheelT
Working with text
Formatting text is one of the most common CSS tasks. You set the font typeface, which is also
known as the font family, such as Times New Roman. You then set the font, which is a specific
member of the typeface, such as Times New Roman 12-point bold.
Font families belong to one of five groups.
■■serif Font families with serifs or curls at the top and bottom of characters, such as
Times New Roman
■■sans serif Font families without serifs, such as Arial
■■monospace Font families in which all characters have the same width, such as
Courier New
■■cursive Font families that imitate handwriting, such as Mistral
■■fantasy Font families that are decorative and used in titles, such as Impact
The most commonly used font families belong to one of three groups: serif, sans serif, or
monospaced. Figure 4-9 shows an example of the three groups.
Key
Te rms