how do you make the text bold in css code example
Example 1: css text bold
font-weight: bold;
Example 2: css bold text
we can set text bold using css property named 'font-weight'
Syntax:
selector{
font-weight: bold;
}
Example 3: css bold weight
/* key word "lighter", "normal", "bold", or "bolder" */
.normal {
font-weight: normal;
}
/* number between 100 and 900 */
.heavy {
font-weight: 900;
}