DOM stands for Document Object Model. It is an object-oriented representation of structured documents like XML and HTML.
Setting the textContent property of an Element is one way to output text on a web page.
For example, consider the following HTML tag:
This will select the element that with the id paragraph and set its text content to "Hello, World":
document with the following body:
That will change your HTML body to the following: