font-size
We’ve already covered CSS size units, which are used to set the font size among other things.
Bear in mind that setting a font size of 16px
won’t make each letter 16px
high. The actual size of each letter depends on the font-family used.
font-style
This property can make your text italic:
Default value: font-style: normal;
.
Another possible value is oblique
but is never used.
font-weight
This property can make your text bold:
Default value: font-weight: normal;
.
Depending on the font-family
used, there is a range of font weights available, from 100
to 900
:
Very few fonts provide all 9 weights. The Exo font is one of them.
You’ll mostly find 400 (normal) and 700 (bold), and sometimes 300 (light) and 500 (medium).
font-variant
This property turn your text into small caps:
Default value: font-variant: normal;
.
It’s not a widely used property.