innerHTML

innerHTML is the content between the start and end tags of an HTML element.

It allows the content between these tags to be modified.

Syntax

document.getElementById("id").innerHTML = "content";

Example

External

Mozilla Developer Network