'font' Example : font « Tags « HTML / CSS






'font' Example

 
    
<html>
<head>
<title>font element example</title>
</head>
<body>
    <font face="Verdana, Arial, Helvetica, sans-serif" size="30" color="#006699">
    This element is an inline element.
    </font>
    <br>
    <font face="Times New Roman, Times, serif" size="40" color="#CC3366">
    <i>This fontwill appear in Times.</i>
    </font>
    <br>
    <font face="Courier New, Courier, mono" size="20" color="#0000FF">
    Courier New.
    </font>
    <font size="20" color="#0000FF">
    size and color
    </font>
    <font color="#0000FF">
    color
    </font>
</body>
</html>
    
      
        
  








Related examples in the same category

1.'point-size' indicates the point size (1-7) of a font
2.'color' sets the color of the text
3.'face' sets the typeface (font face)