property

font-weight — CSS reference

Requests a face weight, not a guaranteed stroke thickness. Initial normal (400); inherited. Numeric weights can select a static face or a variable weight axis. Relative keywords resolve using the parent weight and the relative-weight mapping, not by adding a fixed number.

Formal Syntax & Structure

css syntaxcss
normal | bold | bolder | lighter | <number [1,1000]>

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS font lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{font-weight:650}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>
CSS Reference