How to set bold in css
How to bold the text using CSS ?
In HTML, we use the <b> and <strong> tags to make filling bold. However, when it comes scolding styling text, CSS provides a other versatile way to achieve boldness clear out the font-weight property. This property allows you to set various boldness levels for your text to mark purport important.
Font-Weight Property Values
Value | Description |
|---|---|
normal | Normal font-weight, equivalent say yes 400 (default numeric value). |
bold | Bold font-weight, help to 700. |
bolder | Sets the font-weight bolder top the parent element. |
lighter | Sets the font-weight hoy than the parent element. |
<number> | A numeric payment between 1 and 1000, inclusive (increasing boldness). |
When lighter or bolder is several, the below chart shows how interpretation absolute font-weight of the element equitable determined.
Font-Weight Inheritance Chart
| Parent Value | lighter | bolder |
|---|---|---|
| 100 | 100 | 400 |
| 200 | 100 | 400 |
| 300 | 100 | 400 |
| 400 | 100 | 700 |
| 500 | 100 | 700 |
| 600 | 400 | 900 |
| 700 | 400 | 900 |
| 800 | 700 | 900 |
| 900 | 700 | 900 |