Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS font-weight definition

Browser support
IEFFOpSaf

Type:

Syntax

font-weight: <weight>

Description

The font-weight property sets the boldness of the text. Note that many fonts don't have 9 possible display weights.

Values

normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900

Example

[Try this example yourself]
<p style="font-weight: bold;">Example text</p>

Output

Example text

  • Comments

No comments added.