The querySelector() method returns the first element within the document that matches the specified
CSS selector. You can use it to search by classes (.class), IDs (#id), or tags
(h1). If you want to select all matching elements, use querySelectorAll().