web.dev LIVE has kicked off! Join us now for our digital event from June 30th to July 2nd at web.dev/live

The currently selected DOM node

Console shortcut to get the currently selected DOM node

When you have a node selected in the Elements panel, use $0 to access it in the Console panel. On this subject, you can also use $_ to access the value of the most recently evaluated expression.