HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <h1>CSS text-transform Property</h1> <p>This is a sentence</p> <button onclick="myFunction()">Click Me</button> <script> var x = document.getElementsByTagName("p")[0]; function myFunction(){ x.style.textTransform = "uppercase"; } </script> <p><strong>Note</strong>: click on the button to change the 'text-transform' from none to uppercase.</p> </body> </html>
OUTPUT
×

Save as Private