This appendix contains a quick reference for commonly available fonts and brief discussions of downloadable fonts and various text replacement techniques to improve online typography.

Specifying Fonts

Under HTML 4.01 and transitional XHTML 1.0, you can use the <font> tag to set a font in a page by setting the face attribute:

<p>This is standard text.<font face="Britannic Bold">This is text inBritannic Bold?</font>More standard text.</p>

A Web browser that reads this HTML fragment should render the text in the font named in the face attribute, but only for users who have the font installed on their systems. To address the possibility of missing fonts, multiple font names can be listed using the face attribute:

<p>This is standard text.  ...

Get HTML & CSS: The Complete Reference, Fifth Edition, 5th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.