update innerHTML code example
Example 1: change innerhtml
document.getElementById("p1").innerHTML = "New text!";
Example 2: js innerHTML
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";
document.getElementById("p1").innerHTML = "New text!";
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";