The font-family Property

To specify a font, use the font-family: property. We have already used this CSS property to change the typeface (fonts) of our webpages. However, let’s dive a little deeper into what this property can do!

At a minimum, every browser will be able to render something when passed one of three default values:

  • sans-serif
  • serif
  • monospace

Instead of using generic font class names, developers may also use specific font family names. When a specific font family is listed, the browser will try to load the font from the client computer’s font library.

We will discuss how this is done this during this Topic.