Properties
CSS
font-weight
The font-weight property specifies the weight of the font.
font-weight: normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit
| Initial: | normal |
| Applies To: | all elements |
| Inherited: | yes |
| Percentages: | NA |
| Media: | visual |
Values
font-weight: value;
| Value: | Description: |
| bold | 700 in the ordered sequence |
| bolder | Bolder relative to the weight inherited from the parent |
| inherit | Takes the same computed value as the property for the element's parent |
| lighter | Lighter relative to the weight inherited from the parent |
| normal | 400 in the ordered sequence |
DOM
[window.]document.getElementById("element-id").style.fontWeight = "font-weight";
