CSS font-weight Property Example

Updated on     Kisan Patel

The font-weight CSS property define the weight or boldness of the font.

Various font weights are –

  1. Normal (by Default)
  2. Bold
  3. Bolder
  4. Lighter

Syntax

font-weight: normal;
font-weight: 700;

Example

p.normal {font-weight:normal;}
p.bold {font-weight:bold;}
p.bolder {font-weight:bolder;}
p.lighter {font-weight:lighter;}


CSS

Leave a Reply