Run ยป
<!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <h2 id="heading">hello html and javascript</h2> <button type="button" onclick="ChangeUp()"> Change </button> <script> function ChangeUp(){ document.getElementById("heading").style="text-transform: capitalize;"; } </script> </body> </html>