Category: Web
The value for font-weight
can be specified using a name, such as thin, light, medium, or bold. Alternatively, fonts have a numeric value that can be any number between 1 and 1000.
The following CSS specifies font weight using a numeric value:
.heading {
text-transform: uppercase;
font: 1.5rem 'Poppins', sans-serif;
font-weight: 700; // Equal to bold
}
See common font weight name mappings for details on mappings of numeric font values to names.