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








Question

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

Answer


<html>
<head>
<style>
    .bold {font-weight:bold;}
    .italic {font-style:italic;}
</style><!-- www.j a va2s .  co  m-->
</head>
<body>
    <div class="arial">
        Arial The quick brown fox jumped over the lazy dog.<br />
        <span class="bold">Arial The quick brown fox jumped over the lazy dog.</span><br />
        <span class="italic">Arial The quick brown fox jumped over the lazy dog.</span><br />
    </div>
</body>
</html>

The code above is rendered as follows: