JavaScript Essentials

Lesson 08 · 12 min

DOM: find and change

A page is a tree of elements. JS can read it and change it.

12 minLesson 8 of 10Practice includedAsk AI on any point

The browser parses HTML into a tree of objects — the DOM. JavaScript can read and change that tree: find a node, replace text, add a class, insert a new element. It all starts with finding things.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.