ElementquerySelectorAll
Element.querySelectorAll is a method on the Element interface that returns a static NodeList of descendant elements that match a given CSS selector within the element's subtree. It provides a scoped alternative to document.querySelectorAll, which searches the entire document.
Usage: It accepts a single string containing one or more CSS selectors separated by commas. The selectors
Return value and characteristics: The result is a static NodeList, meaning it does not update automatically
Scope and examples: The search is restricted to the descendants of the element on which the method
Notes: This method is useful for modular scripts and components where you want to find elements within