querySelector
Finds the first descendant element matching the given CSS selector, similar to JavaScript's querySelector().
Return
The first matching Element, or null if none found.
Parameters
selector
The CSS selector to match.
Finds the first descendant element matching the given CSS selector, similar to JavaScript's querySelector().
The first matching Element, or null if none found.
The CSS selector to match.