CSS Property Value How to - font-weight:bold;








Question

We would like to know how to font-weight:bold;.

Answer


<html>
<head>
<style>
    .bold {font-weight:bold;}
    .italic {font-style:italic;}
</style><!--from   w ww. j a v  a2 s. c  om-->
</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: