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.

</feature>

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.