add text to html from javascript code example Example: javascript innerhtml document.getElementById("example").innerHTML = "Paragraph changed!";