Web browsers have the <strong> and <b> for making text bold but font-weight property is used to make text or any textual element bold in CSS. The font-weight property takes following values
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 |
The font-weight property has the value of ‘normal’ as the default value for all the elements on a web page. They are used as
font-weight: bold;
font-weight: normal;
font-weight: normal;