To change font weight of paragraph using CSS, you can set the font-weight
style property for the paragraph elements with the values like bold
, thin
, normal
, etc.
The following is the typical CSS code to change font weight of paragraph in HTML page using tag name p
.
p {
font-weight: bold;
}
p {
font-weight: thin;
}
p {
font-weight: normal;
}
We shall go through some working examples on how to change font weight of paragraph 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 Paragraph elements.
This is an example on how to change font weight of paragraph 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 paragraph 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 paragraph using normal font weight.
You may edit the following code, and click on Run button.