How to Specify Font Families Using CSS

Body
{
Font-family: Verdana, Arial, sans-serif;
}

How font family specifications work

There are 5 major font families

  1. Sans-serif: fonts without serifs. *Serifs are decorative barbs and hooks on the ends of the letters.
    • Sans-serif is considered the best font for computer screen text
    • Arial, Verdana, Geneva, Trebuchet MS
    • How it looks on the page
  2. Serif: fonts with serifs; often found in newspaper print
  3. Monospace: constant width characters; “i” and “m” take up the same amount of horizontal space; used to show software code examples.
  4. Cursive: includes fonts that look handwritten, sometimes used on web page headings
  5. Fantasy: Stylized, decorative fonts, not widely available and rarely used in serious web designs

Valid XHTML 1.0 Strict