CSS font-style Property


This font-style CSS property defines the style of font for the element's text content.

This font-style CSS property defines the style of font for the element's text content.

In CSS, if we want to give designing to any type of text then we can make the use of CSS font style attribute. It helps to make a better user experience.

CSS Syntax

font-style: normal|italic|oblique|initial|inherit;
Property values:

Supported Browsers:

  • Firefox: 52.0, 2.0 -moz-
  • Google Chrome: 50.0, 4.0 -webkit-
  • Internet Explorer: 10.0
  • Safari: 9.0, 3.1 -webkit-
  • Opera: 37.0, 15.0 -webkit-, 11.1

Example -