Document: querySelector()

The querySelector method returns the first matching element.

Document API