change innerhtml of elemtn ks code example
Example 1: javascript innerhtml
document.getElementById("example").innerHTML = "Paragraph changed!";
Example 2: js innerHTML
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";