1️⃣

3.1 What is the DOM

 

3.1 What is the DOM

The Document Object Model (DOM) is a group of objects that represents the content of an HTML webpage (including its CSS), so that other programming languages can access HTML elements.
At the core of DOM, the document object represents the webpage; all other objects in DOM must be accessed through the document object. Under the document object, the rest of the objects are referred to as node objects.
It is important to note that DOM is not a part of Javascript. Instead, it is a Web API we use to interact with our HTML webpage. Using DOM, we can edit, insert, and remove HTML elements; change CSS properties; and respond to any events occurring on our webpage.

Next Section

2️⃣
3.2 Manipulating HTML Elements
 
⚖️
Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License. If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.