Discuss Font Property in CSS?

CSS Font property is used to control the look of texts. By the use of CSS font property, you can change the text size, color, style and more.
These are some important font attributes:

  • CSS Font color: This property is used to change the color of the text. (Standalone attribute)
  • CSS Font family: This property is used to change the face of the font.
  • CSS Font size: This property is used to increase or decrease the size of the font.
  • CSS Font style: This property is used to make the font bold, italic or oblique.
  • CSS Font variant: This property creates a small-caps effect.
  • CSS Font weight: This property is used to increase or decrease the boldness and lightness of the font.
  • CSS Font-Stretch: This property is used to set the font width, such as condensed or expanded.