The document Object
- The
documentobject is your door into accessing DOM objects - Has a number of useful properties and methods for accessing elements
document.getElementById()- Gets an element with a particular id attributedocument.getElementsByClassName()- Gets all elements with a particular class attributedocument.querySelector()- Gets the first element with a CSS selector
20 / 24