Choosing a Font Family

One of the most important choices you’ll make for your Web site is the font that you’ll use for the body and for headlines.

Figure 10.2. I’ve specified the very common Arial Black for the headlines. For paragraphs, I’ve chosen Palatino Linotype, a font common on Windows systems.

To set the font family:

After the desired selector in your style sheet, type font-family: name, where name is your first choice of font.

Figure 10.3. On this Windows XP system, Palatino Linotype was installed by default and thus displays properly here.

✓ Tips

  • Surround multi-word font names with quotes (single or double).

  • If your font names ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.