querySelector() (JavaScript)

document.querySelector() finds the first element on the page that matches a CSS selector.