querySelectorAll()

The DOM method that returns every element matching a CSS selector as a static NodeList.

In more detail

The list is a snapshot: elements added or removed later do not change it. That makes it safe to loop over while you modify the DOM.

Related terms

Taught in

References