🔌

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.