style.fontWeight (Property)

The boldness of text drawn in the current font.

Availability:

CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.fontWeight
CSS syntax:font-weight: aWeight
Argument list:aWeightA font weight

The font weight is a continuous scale from 100 to 900. Printers can resolve the font weights to a finer granular accuracy than a screen display. Screen displays can generally cope with discriminating a difference between 100 and 200 but cannot manage any better than that due to the screen resolution.

The value can also be specified with the following keywords:

See also:JSSTag.fontWeight, String.bold(), style.font