innerhtml and value in javascript code example
Example 1: change innerhtml
document.getElementById("p1").innerHTML = "New text!";
Example 2: javascript innerhtml
document.getElementById("example").innerHTML = "Paragraph changed!";
Example 3: js innerHTML
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";