The AI Reskilling Platform

Learn how to manipulate The DOM with JS

en 4Geeks

Step by step, go over all the most important DOM concepts and methods: Use javascript to manipulate styles, HTML elements.
Course Report Badge 2025

Get Full Program Details

Apply below to receive the program overview by e-mail and choose how you'd like our admissions team to contact you.

By signing up, you agree to the Terms and Conditions and Privacy Policy

You will learn the following concepts:

  1. How to select elements from your website.

  2. Manipulate them with JavaScript (change styles, add event listeners).

  3. Remove elements programmatically.

  4. Change your entire website without a refresh.

How are the exercises organized?

Each exercise is a small vanillajs website containing the following files:

  1. index.js: represents the entry JavaScript file that will be executed when the website loads.
  2. index.html: represents the HTML entry for the website.
  3. style.css: your website styles, they have to be imported from the index.html
  4. README.md: contains exercise instructions.
  5. test.js: you don't have to open this file, it contains the testing script for the exercise.

Note: The exercises have automatic grading, but it's very rigid and strict, my recommendation is to not take the tests too serious and use them only as a suggestion, or you may get frustrated.

Contributors

Thanks goes to these wonderful people (emoji key):

  1. Alejandro Sanchez (alesanchezr), contribution: (coder) 💻, (idea) 🤔, (build-tests) ⚠️, (pull-request-review) 🤓, (build-tutorial) ✅, (documentation) 📖

  2. Paolo (plucodev), contribution: (bug reports) 🐛, (coder) 💻, (translation) 🌎

This project follows the all-contributors specification. Contributions of any kind are welcome!

This and many other exercises are built by students as part of the 4Geeks Academy Coding Bootcamp by Alejandro Sánchez and many other contributors. Find out more about our Full Stack Developer Course, and Data Science Bootcamp.