edit html element javascript

JavaScript
document.getElementById("Test").innerHTML = "<h1>Test</h1>"; 
Source

Also in JavaScript: