Targeting methods in Javascript (querySelector)
querySelector document.querySelector(CSS Selector) querySelectorAll document.querySelectorAll(CSS Selector) querySelector() The querySelector() method returns the first Element within the document that matches the specified selector, or group of selectors. It…