basics of website design banner photo

HTML

HTML 5

CSS 2.1

CSS 3

Reference

CSS font-weight Property

The font-weight property sets the weight of a font - weight in this instance refering to relative thickness.

Possible Values

  • normal, bold, bolder, lighter
  • 100, 200, 300, 400, 500, 600, 700, 800, 900
  • inherit - the value is inherited from the parent element.

The weight can be set using one of the keywords normal, bold, bolder and lighter or by using one of the numerical values 100, 200, 300, 400, 500, 600, 700 , 800 or 900.

As you can see there are many values available but the trouble is that browsers only show two different weights for fonts - normal and bold. The list below has been compiled setting the font-weight using all of it's possible values but as you can see it displays as either normal or bold, normal, lighter, 100, 200, 300, 400 and 500 showing normal text and bold, bolder, 600, 700, 800, and 900 displaying as bold text.

CSS 2.1 Property List