Please enable JavaScript to use CodeHS

Florida Foundations of Web Design

Lesson 7.4 Styling Elements Using Javascript

Description

In this lesson, students learn how to style elements in HTML using JavaScript and the Document Object Model.


Objective

Students will be able to:

  • Utilize setAttribute appropriately to style elements in JavaScript
  • Distinguish between .attribute and setAttribute notation and determine the advantages and disadvantages of both