Inspecting and Selecting Elements
You'll learn how to quickly locate and select any element in the DOM using DevTools' selection tools.
The Elements panel is only useful if you can quickly find the exact element you want to inspect. Browser DevTools offer three primary ways to select elements: the element picker (inspect tool), keyboard shortcuts, and context menu options. Each method suits different workflows and situations.
The Element Picker Tool
The element picker (often called "inspect mode") lets you hover over the rendered page and click to select an element. In Chrome/Edge, click the arrow icon in the top-left of DevTools (or press Ctrl+Shift+C / Cmd+Shift+C). As you move your cursor, elements highlight with overlays showing their dimensions, padding, border, and margin. Click any element to jump directly to it in the Elements tree.
This is like using a flashlight to point at physical objects—you see exactly what you're targeting before committing.
Context Menu Shortcut
Right-click any visible element on the page and select "Inspect" or "Inspect Element". This immediately opens DevTools (if closed) and highlights that element in the DOM tree. Perfect when you already know which element you want to examine.
Keyboard Navigation
Once in the Elements panel, use arrow keys to navigate the DOM tree: up/down to move between siblings, right to expand children, left to collapse or move to parent. Press H to hide elements temporarily, Delete to remove them (temporarily), and F2 to edit HTML directly.
Finding Elements by Search
Press Ctrl+F / Cmd+F while in the Elements panel to search by selector, text content, or XPath—useful when you know a class name or ID but can't spot it visually.
Key Takeaway: Master the element picker for visual selection, right-click inspect for direct access, and keyboard navigation for efficient DOM traversal—together they make inspecting elements fast and intuitive.