To change font weight of Div using CSS, you can set the font-weight
style property for the div elements with the values like bold
, thin
, normal
, etc.
The following is the typical CSS code to change font weight of Div in HTML page using tag name div
.
div {
font-weight: bold;
}
div {
font-weight: thin;
}
div {
font-weight: normal;
}
We shall go through some working examples on how to change font weight of Div using CSS. In the following examples, you may change the value of font-weight and Run the code to visually observe the changes made to the Div elements.
This is an example on how to change font weight of Div using bold font weight.
You may edit the following code, and click on Run button.
This is an example on how to change font weight of Div using thin font weight.
You may edit the following code, and click on Run button.
This is an example on how to change font weight of Div using normal font weight.
You may edit the following code, and click on Run button.