Font-Weight Attribute

HTML (DHTML)

Font-Weight Attribute

Internet Development Index

Defines the thickness of the letters of the font. Read/write String.

Applies To

TextPath

Tag Syntax

<v: element style="font-weight:expression">

Script Syntax

element.style.fontweight="expression"

expression=element.style.fontweight

Remarks

The values are the same as the standard HTML style attributes. Values include:

ValueDescription
normalNormal. Default.
boldBold.
bolderHeavier than normal.
lighterLighter than normal.
100At least as light as the 200 weight.
200At least as bold as the 100 weight and at least as light as the 300 weight.
300At least as bold as the 200 weight and at least as light as the 400 weight.
400Normal.
500At least as bold as the 400 weight and at least as light as the 600 weight.
600At least as bold as the 500 weight and at least as light as the 700 weight.
700Bold.
800At least as bold as the 700 weight and at least as light as the 900 weight.
900At least as bold as the 800 weight.

VML Standard Attribute

Example

The font weight is bold.

   <v:line from="50 100" to="400 100">
   <v:fill on="True" color="red"/>
   <v:path textpathok="True"/>
   <v:textpath on="True" string="VML Text"
   style="font:normal normal bold 36pt Arial"/>
   </v:line>