'text-transform' Example : text transform « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'text-transform' Example

    
<html>
<body>
<div id="myDiv" style="text-transform:capitalize">www.java2s.com</div>
<button onclick="myDiv.style.textTransform = 'uppercase';">uppercase</button>
<button onclick="myDiv.style.textTransform = 'lowercase';">lowercase</button>
</body>
</html>

    
      
      








Related examples in the same category

1.'text-transform' Syntax and Note
2.'text-transform' Possible Values
3.'text-transform' is applied to