Font size : Font « Style Layout « JavaScript DHTML






Font size

 
    
<html>
<body>
<font id="myFont" size="2">This is a Font size 2</font>
<button onclick="myFont.size = 4;">Make the Size 4</button>
</body>
</html>

    
      
        
  








Related examples in the same category

1.Font face
2.div.style.fontFamily="Verdana";
3.div.style.fontSize="2em";
4.div.style.fontSize="larger";
5.div.style.fontWeight="900";