September 2017
Beginner
666 pages
11h 35m
English
The Document Object Model (DOM) allows you to access elements of a web page and enable interaction with the page by adding and removing elements, changing the order, content and attributes of elements, and even altering how they are styled.
In this chapter, we’ll cover the following topics:
Introduction to the DOM
Getting elements ―getElementById, getElementsByClassName, getElementsByTagName, querySelector and querySelectorAll
Navigating the DOM
Getting and setting an element’s attributes
Updating the DOM by creating dynamic markup
Changing the CSS of an element
Our project ― we'll dynamically insert each question into the HTML
The Document Object Model, ...
Read now
Unlock full access