font-style: ***;

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O

The font-style property specifies the style of the font.


p {
font-style: italic;
}

Property Value Explanation
font-style italic italic font
oblique oblique font
normal normal font (default)

Example


<html>
<head>
<title>TAG index</title>

<style type="text/css">

#example1 { font-style: italic; }
#example2 { font-style: oblique; }
#example3 { font-style: normal; }

</style>

</head>
<body>

<p>The font style is <span id="example1">italic</span></p>
<p>The font style is <span id="example2">oblique</span></p>
<p><em>The font style is <span id="example3">normal</span></em></p>


</body>
</html>

Output

The font style is italic

The font style is oblique

The font style is normal