Services Work Learn About Contact
0/10
Lesson 8 of 10

DOM Manipulation

The DOM (Document Object Model) is a tree of HTML elements that JavaScript can read and modify. Use document.querySelector() to find elements and change their content or style.

JS
// Find an element
const title = document.querySelector("h1");

// Change its text
title.textContent = "New Title";

// Change its style
title.style.color = "blue";
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed JavaScript!

You finished all 10 lessons and quizzes. You now know the basics of JavaScript.