fontweight in css code example
Example 1: css bold text
.text {
font-weight: bold;
}
Example 2: font-weight css
font-weight: normal;
font-weight: bold;
font-weight: lighter;
font-weight: bolder;
font-weight: 1;
font-weight: 100;
font-weight: 100.6;
font-weight: 123;
font-weight: 200;
font-weight: 300;
font-weight: 321;
font-weight: 400;
font-weight: 500;
font-weight: 600;
font-weight: 700;
font-weight: 800;
font-weight: 900;
font-weight: 1000;
font-weight: inherit;
font-weight: initial;
font-weight: unset;
Example 3: css bold text
we can set text bold using css property named 'font-weight'
Syntax:
selector{
font-weight: bold;
}
Example 4: font weight css
font-weight: normal;
font-weight: bold;
font-weight: lighter;
font-weight: bolder;
font-weight: 100;
font-weight: 200;
font-weight: 300;
font-weight: 400; // normal
font-weight: 500;
font-weight: 600;
font-weight: 700; // bold
font-weight: 800;
font-weight: 900;
font-weight: inherit;
font-weight: initial;
font-weight: unset;
Example 5: Font weight css
.myclass {
font-weight: normal;
}
.myOtherClass {
font-weight: 700;
}