freeCodeCamp/guide/english/css/properties/font-style-property/index.md

907 B

title
Font Style Property

Font Style Property

font-style property lets you to change the style of font meaning you can make font italicized. This property accepts following values:

  • normal - Default value.
  • italic - Font gets italicized by selecting the font that is classified as italic in its font family.
  • oblique - Font that classified as oblique in its font family gets used.

Italic and oblique may look similar. According to MDN oblique are just sloped version of the regular face.
You can also specify angle for the lean degree of font when providing oblique value. If angle is not provided, 14 degrees will be used as default.

More Information: