TechBuzzPro

How to Inspect Element in Safari: Step-by-Step Guide

· 6 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To inspect an element in Safari, you first need to turn on the Develop menu, because Safari hides its web inspector by default. Open Safari, go to Settings (called Preferences on older macOS versions), click the Advanced tab, and tick the checkbox labeled "Show features for web developers" (older versions say "Show Develop menu in menu bar"). Once the Develop menu appears in the menu bar, right-click any part of a webpage and choose Inspect Element, or use the Develop menu directly. The steps below cover the desktop version on Mac; Safari on iPhone and iPad does not have a built-in inspector, though you can inspect a connected iPhone's web pages from a Mac using the Develop menu.

What You'll Need

  • A Mac running a current version of macOS with Safari installed.
  • Safari updated to a recent version (the Develop menu has been part of Safari for years, but the exact labels shift between versions).
  • For inspecting pages on an iPhone or iPad: a Lightning or USB-C cable, both devices on the same Apple account, and the phone's Web Inspector setting enabled under Settings > Safari > Advanced.
  • No developer account, paid tools, or extensions are required.

Step-by-Step

  1. Open Safari. Launch Safari from the Dock or Applications folder. You can enable the Develop menu with no page loaded, but you'll need a page open to actually inspect something.
  2. Open Safari's settings. From the menu bar, choose Safari > Settings (on macOS versions before Ventura this reads Safari > Preferences). Menu labels can differ slightly by macOS and Safari version, so if you don't see Settings, look for Preferences.
  3. Go to the Advanced tab. Click the Advanced icon at the far right of the settings toolbar.
  4. Tick the developer checkbox. At the bottom of the Advanced pane, check "Show features for web developers." On older Safari versions the same option is worded "Show Develop menu in menu bar." Either way, this is the single switch that unlocks the inspector.
  5. Close the settings window. The Develop menu should now appear in the menu bar between Bookmarks and Window. If it doesn't, quit Safari completely (Safari > Quit Safari) and reopen it.
  6. Navigate to the page you want to inspect. Load the site normally. The inspector works on any page, including local files you open in Safari.
  7. Right-click the element. Control-click or right-click the exact text, image, button, or blank area you want to examine, then choose Inspect Element from the context menu. Safari opens the Web Inspector and highlights the matching line of HTML in the Elements tab.
  8. Or open the inspector from the menu. If right-clicking is awkward, choose Develop > Show Web Inspector (the shortcut is Option+Command+I). Then use the element-picker button at the top-left of the inspector, hover over the page, and click the element you want.
  9. Read the panes. The Elements tab shows the page's HTML on the left and the CSS rules for the selected element on the right. Click any tag to select it; the Styles pane updates to show which rules apply and which are overridden.
  10. Make temporary edits. Double-click an attribute or text inside the Elements tab to change it live, or edit values in the Styles pane. These changes only affect your own browser tab and disappear on reload; they never change the live website for anyone else.
  11. Use the other tabs as needed. The Console tab shows JavaScript errors and lets you run commands, the Network tab lists every request the page makes, and the Sources tab lets you view loaded scripts. For most everyday checks, Elements and Console are enough.
  12. Close the inspector. Click the X at the top-left of the Web Inspector panel, or press Option+Command+I again. Safari remembers the setting, so the Develop menu stays available until you untick the checkbox.

Common Mistakes

  • Looking for the inspector before enabling it. Safari genuinely hides it by default, so right-clicking a page on a fresh install shows no Inspect Element option. The Advanced checkbox is the fix.
  • Confusing Safari settings with System Settings. The developer toggle lives inside Safari's own settings, not in macOS System Settings.
  • Expecting edits to stick. Changes made in the inspector are local and temporary. Reloading the page wipes them.
  • Trying to inspect from an iPhone directly. Mobile Safari has no inspector on the device itself. You need the desktop Safari route with the phone connected by cable.
  • Right-clicking a browser toolbar or the tab bar. Inspect Element only targets page content. Right-click inside the webpage area, not Safari's own interface.

Tips

  • Use the element-picker (the crosshair-style button in the inspector toolbar) when a page has overlapping layers and right-clicking keeps selecting the wrong element.
  • Press Option+Command+I to toggle the inspector quickly while you work.
  • In the Styles pane, untick a checkbox next to a CSS rule to disable it temporarily. This is the fastest way to see which rule controls a particular style.
  • Use the device toolbar in the Develop menu (Responsive Design Mode) to preview how a page looks at phone and tablet widths without leaving your Mac.
  • Keep the Console open while testing a page; JavaScript errors that break buttons or forms usually appear there first.
  • If you only need to check a color, font, or image source, selecting the element and reading the Styles pane is quicker than editing anything.

Troubleshooting

  • No Develop menu after ticking the box: quit Safari fully and reopen it. If it still doesn't appear, confirm you edited Safari's settings and not another browser's, and check that Safari is updated.
  • Inspect Element missing from the right-click menu: the Develop menu is probably still disabled. Repeat the Advanced-tab step, then reload the page.
  • Inspector opens but shows nothing useful: click the element-picker and select the element again, or switch to the Elements tab manually. Some pages load content in frames, so you may need to select the frame first.
  • Page behaves oddly while the inspector is open: close the inspector and reload. If the problem persists with it closed, the issue is the site, not Safari.
  • Inspecting an iPhone shows no device: connect the cable, unlock the phone, tap Trust if prompted, and make sure Web Inspector is enabled under Settings > Safari > Advanced on the phone. Both devices must be signed in with the same Apple account.

Frequently Asked Questions

Is Inspect Element available in Safari without any setup?

No. Safari hides the Develop menu and inspector by default. You must enable the developer checkbox in Safari's Advanced settings once, after which the option stays available.

Does inspecting a page change it for other people?

No. All edits you make in the Web Inspector exist only in your browser tab and vanish when you reload. The live site is untouched.

Can I inspect elements on an iPhone or iPad?

Not on the device itself. You can connect the phone to a Mac with a cable, enable Web Inspector in the phone's Safari settings, and then use the Mac's Develop menu to inspect the phone's web pages.

Why can't I right-click on some pages?

Some sites block the context menu with scripts. Use Develop > Show Web Inspector and the element-picker button instead of right-clicking.

Is the Web Inspector the same as a browser extension?

No. It is built into Safari and needs no installation. Extensions are separate add-ons, and you don't need one to inspect elements.

Will using the inspector break the website?

No. You are only viewing and locally editing a copy of the page in your browser. Nothing is saved to the server.