Skip to content

Glossary: JavaScript in the Browser

querySelector / querySelectorAll

Also written: querySelector, querySelectorAll

querySelector returns the first element matching a CSS selector, or null. querySelectorAll returns all matches as a NodeList.

Where the book teaches it

Related terms

NodeListnull