Lesson 9: The DOM

The Document Object Model (DOM) represents a webpage’s structure so JavaScript can change it.

document.getElementById("demo").innerHTML = "Hello World!";