Font-related properties

The following table has font related properties:

font-familySpecifies the font family
font-sizeSpecifies the size of the font
font-styleSpecifies the style for a font(normal or italic, etc.)
font-variantSpecifies whether to use a small-caps font (normal or smallcaps)
font-weight Specifies the weight for a font (the thickness of the characters, for example, normal or bold or bolder or lighter or use a <number 100-900>
fontShorthand property to set fonts

The format for the font property value is as follows:

font: <font-style> <font-variant> <font-weight> <font-size> <font-family>
  HTML CSS Book 

  1. Font-related properties
  2. Selecting a Font with font-family
  3. Setting the Font Size
  4. Setting the Font Style and Weight
  5. Using Web Fonts