Set font-style to oblique in HTML and CSS

Description

The following code shows how to set font-style to oblique.

Example


<html>
<head>
<!--from   w  ww.  j av  a 2  s  . c om-->
<style type='text/css'>
p {
font-size: 25px;
}

p#oblique {
font-style: oblique;
}
</style>
</head>
<body>

<p id='oblique'>
This font is oblique.
</p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Set font-style to oblique in HTML and CSS
Home »
  HTML CSS Tutorial »
    Text »
      Font Style
HTML CSS Tutorial Font Style
Compare font style settings:normal,italic,o...
Compare the font-style properties in HTML a...
Set font-style to italic in HTML and CSS
Set font-style to normal in HTML and CSS
Set font-style to oblique in HTML and CSS