Web Development: HTML, CSS and JavaScript
Exit

Lesson 12 of 17 · Browser and network

The DOM: selecting, changing and creating elements, and reacting to events

1 h Node.js 22 (Debian, git, npm, python3)

Objective

Connect your JavaScript to the page: find elements, change their text and their classes, create new ones from data, and react to the visitor's actions (click, typing, form submission). You will display the rooms of Riad MasterLinux dynamically and add a dark theme and a form that answers without reloading the page.

This lesson is part of the full course

Unlock Web Development: HTML, CSS and JavaScript to read every lesson, do the exercises, access the simulations and earn your certificate.

Already enrolled? Log in.