Code
Execute
<!DOCTYPE html> <html> <head> <title>html tutorial - html5 - html code - html form - In 30Sec by Microsoft Award MVP - | wikitechy id Attribute</title> </head> <body> <h1 id="title">Wikitechy HTML.<span> - html5 - html code - html form</span></h1> <button onclick="change_title()">Change Title!</button> <script> function change_title() { document.getElementById("title").innerHTML = "Wikitechy CSS."; } </script> </body> </html>
Result