'font' Example : font « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'font' Example

    
<html>
<body>
<div style="font:italic normal bolder 12pt verdana"> 
font font</div>
   <hr>
   <div style="padding:10px;"
        onmouseover="this.style.font='italic small-caps bold 12pt serif'"
        onmouseout="this.style.font='normal normal normal normal medium times new roman'">
        Move the mouse over and out to change the font style.
   </div>
</body>
</html>

    
      
      








Related examples in the same category

1.'font' Syntax and Note
2.'font' Possible Values
3.'font' is applied to