Skip to Content


CSS Reference / font-family

font-family

Font families may be assigned by a specific font name or a generic font family. Obviously, defining a specific font will not be as likely to match as a generic font family. Multiple family assignments can be made, and if a specific font assignment is made it should be followed by a generic family name in case the first choice is not present.

Values:

  • family-name
  • generic-family

Examples:

  1. font-family: arial, sans-serif;
  2. font-family: georgia, times, serif;
  3. font-family: "Courier new", monaco, monospace;

Browser support:

  • Internet Explorer 4+
  • Netscape 4+
  • Opera 3.5+

Related properties:

back to list



Search

Sponsors

Logo design for $149

Advertise here