CSS Font-Family Property

CSS 1

CSS 2

CSS 3

Yes Yes Yes

Description

Specifies the name of the font family used to display the element's text.

Syntax

font-family: [family-name],[generic-name]

Possible values

  • [family-name]
  • [generic-name]
  • inherit

Initial Value

Depends on user agent

Applies To

All elements

Inherited

Yes

Media

Visual

Example

p.extra {font-family: Courier, "Courier New", serif;}


View All CSS Properties