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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access