Example

A simple font-family property example:

Laboratory

description & Usage

To determine the family and type of font used for the text, they use the font-family property.

Informations

# Description
Default Value depends on the browser
Inherited yes
Animatable no
Version CSS1
JavaScript syntax object.style.fontFamily="Verdana,sans-serif"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
font-family

Syntax

Values

Values Description
family-name / generic-family Lists the fonts you plan to use in your CSS documents.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.