Chapter 9. Fonts and Font Families

<feature><title>What You’ll Learn in This Hour:</title>
  • Which font properties specify bold, italic, and variant fonts

  • How you can set a number of font properties at once using a shorthand property

  • What the generic font families are and how to use them

  • Which fonts are most commonly installed on browsers

One of the most effective changes you can make to a web page when using CSS is to simply alter the browser’s default font. This can add a more professional look to your website immediately, as well as make it easier for users to read and find information.


Specifying Font Properties

In Hour 2, “Getting Started with CSS,” you were introduced to two font properties: font-size and font-family. These enable you ...

Get Sams Teach Yourself CSS 24 in Hours now with O’Reilly online learning.

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