Skip to content

Feb 05: Modifying the DOM

Learning Objectives

After today’s class, you should be able to:

  • Describe how to manipulate the DOM using JavaScript functions.
  • Apply CSS styles to elements by updating className or classList.
  • Create new elements and append to existing elements in the DOM.

Lesson Outline

Homework [10 min]

Lecture [45 min]

Demos [20 min]

Before Tuesday

  1. Finish the reading from Prep 3.
  2. Submit Lab 3 on Gradescope. ← Due Mon at 11:59pm