Skip to lesson content
Dev4Hub

Lesson 4 of 4

DOM Introduction

1 min read1 sectionAI tutor ready

The HTML DOM

With the HTML DOM, JavaScript can access and change all the elements of an HTML document.

Change element text

JavaScript
document.getElementById("demo").innerHTML = "Hello JavaScript!";

You've reached the end of this lesson.

Mark it complete to keep your place in the course — it counts toward your progress and your streak.