Typography

font-weight

Learn how to use the CSS font-weight property.

CSS font-weight

The font-weight property sets the font weight for an HTML element.

Syntax

.element {
  font-weight: bold;
}

HTML Context Example

<div class="card">
  This is a styled element.
</div>

<style>
.card {
  font-weight: bold;
}
</style>

Notes

Experiment in the CSS playground to see how this affects layout and styling.