Skip to Content
HTML & CSS: The Complete Reference, Fifth Edition, 5th Edition
book

HTML & CSS: The Complete Reference, Fifth Edition, 5th Edition

by Thomas Powell
January 2010
Intermediate to advanced content levelIntermediate to advanced
856 pages
20h 10m
English
McGraw-Hill
Content preview from HTML & CSS: The Complete Reference, Fifth Edition, 5th Edition

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

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.
Start your free trial

You might also like

HTML: A Beginner's Guide, Fifth Edition, 5th Edition

HTML: A Beginner's Guide, Fifth Edition, 5th Edition

Wendy Willard

Publisher Resources

ISBN: 9780071496292