🔌

DOM Connector

Connect JavaScript to the browser. Select elements, respond to events, and build interactive web pages.

1

The Script Tag

Learn how the <script> tag connects JavaScript to your HTML page — and why where you place it matters more than you think.

2

ES Modules: Import & Export

Learn how to split your JavaScript into organized, reusable files using the modern module system.

3

Selecting Elements

Meet the DOM — the browser's live representation of your HTML — and learn how to reach in and grab any element with JavaScript.

4

Reading & Changing Content

Once you've selected an element, learn how to read its content, change its text, update attributes, and even create brand-new elements from scratch.

5

Adding & Removing Classes

Learn how to change an element's appearance by toggling CSS classes with JavaScript — the clean, maintainable way to handle dynamic styles.

6

Event Listeners

Make your page react to clicks, typing, scrolling, and more — events are how JavaScript knows the user did something.

7

Event Delegation & Bubbling

Discover how events travel up the DOM tree and how to use this behavior to efficiently handle events on many elements with a single listener.

8

Capstone: Interactive FAQ Page

Put it all together by building a fully interactive FAQ page with expandable answers, a live search filter, and a dark mode toggle.

9

Codelab: To-Do List

Build a fully functional to-do list app from scratch — create, complete, delete, and save tasks — using only HTML, CSS, and vanilla JavaScript.

10

Codelab: Color Picker

Build a visual color picker with RGB sliders, live preview, hex code display, and a copy-to-clipboard feature — all with vanilla JavaScript.

11

Practice: Predict the Output

Read short DOM scripts and predict exactly what each console.log will print. Reading code is half of writing code — train your eyes before your fingers.

12

Practice: Fix the Broken Code

Each step has DOM code that almost works — but one specific bug stops it. Spot the bug, type the fix into the blank, and learn the kinds of mistakes every developer hits.

13

Practice: Build from Scratch

Stack everything you have learned about the DOM into small, end-to-end builds. Each step gives you an empty editor and a goal — you write the code, run it, and read the console to confirm it worked.