0
2.2kviews
Explain in detail the role of querySelector() and querySelectorAll() methods in CSS with an example.
1 Answer
| written 7.3 years ago by |
The querySelector() and querySelectorAll() methods accept CSS selector as parameters and return the matching element node in the document tree.