Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

font-weight

By Jennifer Kyrnin, About.com

font-weight Description:

The font-weight property defines how light or dark the font displays.

font-weight in CSS Versions:

font-weight Syntax:

font-weight: normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit

  • normal
    The default standard font weight, it corresponds to 400 weight.
  • bold
    The standard bold weight of a font face, corresponding to 700 weight.
  • bolder, lighter
    A darker or lighter version of the font relative to the weight inherited from the parent.
  • 100 - 900
    An ordered sequence where each number indicates a weight that is at least as dark as its predecessor.
  • inherit
    The element should have the same font-weight setting as the parent.

font-weight Initial Value:

normal

font-weight Applies To:

All elements.

font-weight Inheritance:

This property is inherited.

font-weight Browser Support:

font-weight Examples:

Bold font weight

<p style="font-weight : bold;">
This paragraph is bold (weight 700).
</p>
Normal font weight in numbers
<p style="font-weight : 400;">
This paragraph is a normal weight.
</p>

font-weight Special Notes:

  • All of the browsers support bold and normal, but the bolder, lighter, and numbers are not reliable.

More font-weight Information

Return to the Style Library

Explore Web Design / HTML

More from About.com

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. Style Properties
  6. CSS Style Property: font-weight

©2008 About.com, a part of The New York Times Company.

All rights reserved.