CSS font-weight medium example.

CSS font-weight medium

  • CSS
  • 1 min read

In CSS, the range for property font-weight starts from value 100 to 900. To set the CSS font-weight medium you can specify the value of 500. Below are the syntax and examples:

Syntax

font-weight: numeric-values;

CSS font-weight medium Example:

The below CSS example set the paragraph (p tag) font-weight to medium.

p {
   font-weight: 500;
}

Read also: