What is DOM?
The Document Object Model: the tree of objects the browser builds from HTML, which JavaScript can read and change.
Use querySelector to find elements and addEventListener to react to events.
Learn more
- The DOM and events in JavaScript basics