javascript
Selecting Elements in DOMjavascriptLevel1
Progress0%
Contents
Selecting Elements in DOM
1 / 14
Introduction
Selecting Elements
Before JavaScript can read or modify any element on a page, it must first select that element from the DOM. JavaScript provides several methods on the document object to find elements — by ID, class, tag name, CSS selector, and more.