/

HTML / CSS / JavaScript Tutorial

CSS Property: font-weight

[this page | pdf | back links]

The CSS (CSS1) font-weight property indicates how thick or thin (i.e. bold or not) characters should be in the text of an element.

 

Valid property values (other than inherit and initial) are:

 

Value

Description

100, 200, 300, 400, 500, 600, 700, 800, 900

Number selects from very thin to very thick (400 is normal, 700 is bold)

bold

Bold text

bolder

Very bold text

lighter

Lighter text

normal

(default value). Normal text

 

Default Value:

normal

JavaScript syntax:

e.g. object.style.fontWeight="bold"

Inherited:

Yes

Animatable:

Yes

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile