How to change font weight of paragraph using CSS?

Answer

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.

CSS Code

The following is the typical CSS code to change font weight of paragraph in HTML page using tag name p.

Using bold font weight

p {
   font-weight: bold;
}

Using thin font weight

p {
   font-weight: thin;
}

Using normal font weight

p {
   font-weight: normal;
}

Examples

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.

Example 1

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.

Example 2

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.

Example 3

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.