.querySelector()
Term side of the Card
Topic: Object on Page
Unit title: .querySelector()
Categories: Method
Explanation side of the Card
Explanation: The browser API method that returns the first element within the document that matches a specified CSS selector. It's useful for selecting elements from the DOM based on their CSS selectors.
Browser compatibility:
- The chrome browser supports this feature starting from version 1
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 3.5
- The safari browser supports this feature starting from version 3.1
Availability: