The font-style property is used to select between normal (upright) and italic or oblique font faces.

The font-style property contains following information:

  1. value: normal, italic, oblique or inherit;
  2. initial: normal;
  3. applies to: all elements;
  4. inherited: yes;
  5. percentages: N/A;
  6. media: visual;
  7. computed value: as specified by the font family.

The appearance of italic and oblique faces highly depends on the normative within a browser and the generic names of the chosen font family, thus for instance a cursive type family is by default labeled as italic.

Example

CSS font-style property example:

 

›› go to examples ››