innerHTML syntax code example
Example 1: change innerhtml
document.getElementById("p1").innerHTML = "New text!";
Example 2: .innerhtml
// .innerHTML method is used to change the html contents of a DOM object
document.getElementById("demo").innerHTML = "Paragraph changed!";
Example 3: innerHTML
document.getElementById("Test").innerHTML = "<h1>Test</h1>";
Example 4: what is the meaning of the table innerhtml in javascript
table.innerhtml