Font Shorthand

The font property is a shorthand property to apply several font-related properties in a single property. And it specifies the following properties

Value

Description

font-style

Specifies the font style.

font-variant

Specifies the font variant.

font-weight

Specifies the font weight.

font-size/line-height

Specifies the font size and the line-height.

font-family

Specifies the font family.

The font size is required and must be given. The line-height is optional. The font-family must also be given. It is used as
   p
{ font:15px arial,sans-serif; }
or
   p h1
{ font: italic bold 12px Georgia, serif; }
Share this post
[social_warfare]
Font Size
Text Display Control

Get industry recognized certification – Contact us

keyboard_arrow_up