What is the Document Object Model (DOM)?

The DOM is a structured representation of HTML elements in a webpage, allowing manipulation and interaction with elements via JavaScript.

document.getElementById("myElement").innerText = "New Text!";