CSS font property

CSS font

CSS font, is a short hand property, it is used to styles to the text.

CSS font short hand property values,

  • font-style : It is used to add font styles.
  • font-variant : It is used to add font variants.

  • font-weight : It is used to add font weights.

  • font-size/line-height : It is used to add size of the font and the line height.

  • font-family : It is used to specify the fonts family.

Example

Try Yourself