KnowledgeBoat Logo
|

Computer Applications

Differentiate between the Font-weight and Font-variant properties.

CSS

10 Likes

Answer

S.
No.
Font-weight propertyFont-variant property
1.This property specifies the weight or boldness of the font. Possible values are 100-900, bold, bolder, lighter, and normal.This property sets the text font in two variants: normal or small-caps.
2.For example,
H1 {Font-weight : bolder}
For example,
H1 {Font-variant : small-caps;}

Answered By

3 Likes


Related Questions