CSS Font-Weight Property

CSS 1

CSS 2

CSS 3

Yes Yes Yes

Description

Specifies the weight of the font.

Syntax

font-weight: [value];

Possible values

  • normal
  • bold
  • bolder
  • lighter
  • 100
  • 200
  • 300
  • 400
  • 500
  • 600
  • 700
  • 800
  • 900
  • inherit

Initial Value

Normal

Applies To

All elements

Inherited

Yes

Media

Visual

Example

p.new {font-weight: 400;}

p.old {font-weight: lighter;}


View All CSS Properties