Appendix D. Browser-Safe Fonts

You can use the font-family attribute to specify the font(s) to be used with your Web page:

font-family: times, "times new roman", serif;

Of course, which fonts you can use depends directly on which fonts are available on the visitors’ machines. A visitor who doesn’t have the font installed won’t see the design exactly as you intended it. To keep their designs as consistent as possible, many Web designers stick to using Times for the serifed font, Arial/Helvetica for the sans-serif fonts, and Courier for the monospace font. However, most machines have many dozen fonts preinstalled—the trick is knowing which fonts are likely to be installed on which computers.

The following tables present the fonts that are preinstalled ...

Get DHTML and CSS: Advanced Visual QuickPro 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.