.innerhtml

JavaScript
// .innerHTML method is used to change the html contents of a DOM object
document.getElementById("demo").innerHTML = "Paragraph changed!";<html>

<body>


<p id="p1">Hello World!</p>


<script>

document.getElementById("p1").innerHTML = "New text!";

</script>


</body>

</html>
 table.innerhtmldocument.getElementById("p1").innerHTML = "New text!";
Source

Also in JavaScript: