Why is Element.innerHTML used? code example Example: innerHTML document.getElementById("Test").innerHTML = "<h1>Test</h1>";