O'Reilly logo

HTML & CSS: The Complete Reference, Fifth Edition by Thomas A. Powell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX B Fonts

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.  ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required