Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <p id="demo">This is an example paragraph.</p> <button type="button" onclick="myFunction()">Transform text</button> <script> function myFunction() { document.getElementById("demo").style.textTransform = "capitalize"; } </script> </body> </html>