Font properties
The font properties specify the typeface, size, type, weight, and more about the font. The main properties related to fonts are the following:
- font-family: this is a comma-separated list of font names, in order of preference. It is good practice to use a generic font name, like serif or sans-serif, at the end of the list.
- font-style: possible values are italic, oblique, and normal (default).
- font-size: this is the size of the font. The values can be specified by using one of the names: xx-small, x-small, small, medium (default), large, x-large, xx-large. Alternately, the value can be a length or a percentage of the font size of the parent element.
- font-weight: this property determines how bold or light the text is. Possible values are bold, bolder (a darker font with respect to the inherited one), lighter (a lighter font with respect to the inherited one), and normal (default).