documentquerySelectorAll
document.querySelectorAll is a method of the Document interface in the web platform. It returns a static NodeList containing all elements in the document that match the specified CSS selectors.
The method accepts a single string consisting of one or more CSS selectors separated by commas. It
Selectors supported include tag names, classes, IDs, attributes, and many CSS3 selectors such as descendant, child,
Context and scope: querySelectorAll can be used on the document or on any Element, and it searches
Examples: document.querySelectorAll('.button.active'); document.querySelectorAll('a[href^="https://"]'). It returns a NodeList that you can loop over or convert to an
Browser compatibility: supported in all modern browsers, including Chrome, Firefox, Safari, and Edge; older environments such