FrontendTips
GitHub ★
Quick query elements in the Console
The Chrome DevTools provides two shortcut methods to query the elements in the page.
Method
Indentical method
`$`
`document.querySelector`
`$$`
`document.querySelectorAll`
The following screenshot demonstrates how to use them in the
Console
.
Query elements in the Console
See also
Locate an element with a given selector
Put special operators at the beginning of a function
Quickly type color variables