What you will learn in this lesson
JavaScript can react to a page because the browser keeps a structured version of that page ready to work with.
That structured version is called the DOM. You do not need deep browser internals here. You only need a calm beginner idea of what the DOM is and why it matters.
Your lesson goals are simple:
- understand what the DOM is in plain English
- connect the DOM to familiar page parts you already know
- see how JavaScript can change what appears on screen
- read a few tiny examples without rushing
- feel less intimidated by the word DOM
The browser keeps an organized version of the page so JavaScript can read it and change parts of it.