<?xml version="1.0" encoding="utf-8"?>

CSS font-weight property

CSS font-weight property Bad Practice
CSS font-weight property Best Practice

The font-weight property sets the weight (or boldness) of the font. This property can take either keyword values — normal, bold, lighter, and bolder — or numeric values between 1 and 1000, with 1 being the thinnest.

Keep in mind that available weights depend on the font-family set. For example, not all typefaces have bold versions.

Top contributors

Andrea Illes

Topics

Share

Improve your UX & Product skills with interactive courses that actually work