CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS font weight Property

CSS font-weight Property

 

 

The font-weight property is used to set how thick or thin characters in text should be displayed.

 

Default Value:-

 

Its default is normal.

 

Syntax:-

 

Its syntax is:- font-weight: normal | bold | bolder | lighter | number | initial | inherit;

 

Further Explanation:-

 

Value Description
normal Defines normal characters.
bold Defines thick characters
bolder Defines thicker characters
lighter Defines lighter characters
100
200
300
400
500
600
700
800
900
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS