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








Question

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

Answer


<!DOCTYPE html>
<html lang="en">
<head>
<title>Example of CSS font-style property</title>
<style type="text/css">
p.normal {<!--from  www . jav a2  s.  c o 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: