CSS Property Value How to - font-style: oblique;








Question

We would like to know how to font-style: oblique;.

Answer


<!DOCTYPE html>
<html lang="en">
<head>
<title>Example of CSS font-style property</title>
<style type="text/css">
p.normal {<!--   w w  w.  j  a va2s .  co  m-->
  font-style: normal;
}

p.italic {
  font-style: italic;
}

p.oblique {
  font-style: oblique;
}
</style>
</head>
<body>
  <p class="normal">This is a normal paragraph.</p>
  <p class="italic">This is a paragraph with italic font style.</p>
  <p class="oblique">This is a paragraph with oblique font style.</p>
</body>
</html>

The code above is rendered as follows: