add innerhtml js 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>";
document.getElementById("example").innerHTML = "Paragraph changed!";
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";