htmlfonts
← Back to Guides Directory
Font Weights

How to Bold Text in HTML

01. The Concept

Instead of using the outdated bold tag, use the CSS font-weight property. A weight of 400 is standard, 700 is bold, and 900 is black.

02. Production-Ready Code

font-weight: 700;

💡 Pro Typography Tip

Only import the font weights you actually use from Google Fonts to save bandwidth.