DOM & Browser Basics
Connect JavaScript to a real page: select elements, respond to events, validate forms, and persist small amounts of state in the browser.
Functions, arrays, objects, and a working HTML page.
Select and update DOM elements, delegate events, validate forms, persist small state, and render accessible interfaces from data.
Read in order, or jump to what you need.
Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.
- 05.01DOM Selection & Traversal4 min
Find elements reliably, move through the document tree, and update content without breaking the page.
- 05.02Creating & Updating Elements4 min
Build new interface elements, insert them in the right place, and update classes, styles, and accessible text safely.
- 05.03Events & Event Delegation4 min
Respond to clicks and key presses with well-scoped listeners, then handle repeated items through delegation.
- 05.04Forms, Validation & Browser Storage4 min
Read form data, combine native and custom validation, and store small preferences without letting storage failures break the page.
- 05.05Project: Interactive To-Do ListProject4 min
Build a complete browser to-do list with delegated events, filters, accessible markup, and localStorage persistence.
Ready to move on?
Build a persistent to-do list with add, complete, delete, filter, empty states, and keyboard-accessible controls.
Open the module self-check