javascript innerHTML or InnerText code example
Example 1: js innerHTML
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";
Example 2: javascript innertext vs innerhtml
innerHTML shows everything inside of the element.
innerText shows only the text inside of the element.