Friday 20 July 2012

How to Set the font of a text in css


<!DOCTYPE html>
<html>
<head>
<style type="text/css">
p.serif{font-family:"Times New Roman",Times,serif;}
p.sansserif{font-family:Arial,Helvetica,sans-serif;}
</style>
</head>

<body>
<h1>CSS font</h1>
<p class="serif">This is shown in the Times New Roman font.</p>
<p class="sansserif">This is shown in the Arial font.</p>

</body>
</html>

0 Responses to “How to Set the font of a text in css”

Post a Comment