TechBuzzPro

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

· 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 enable the Develop menu: open Safari > Settings (or Preferences) > Advanced and tick “Show features for web developers” (older versions say “Show Develop menu in menu bar”). Then right-click the page element and choose Inspect Element, or press Option+Command+I to open the Web Inspector. The exact labels can differ slightly by Safari version, macOS version and region, but the path is the same.

What You'll Need

  • A Mac running Safari (the full Web Inspector is not available in Safari on iPhone or iPad; see the note below).
  • Safari updated to a current version, so the Develop menu and Web Inspector are present.
  • Administrator access if Safari settings are managed by your organisation.

Step-by-Step

  1. Open Safari and load the page you want to inspect.
  2. Enable the Develop menu. Go to Safari > Settings (called Preferences in older versions) > Advanced. Tick “Show features for web developers” (or “Show Develop menu in menu bar”). Close Settings.
  3. Open the Web Inspector. Press Option+Command+I, or choose Develop > Show Web Inspector from the menu bar. A panel opens, usually docked at the bottom or right of the window.
  4. Select the Elements tab. The inspector opens on the Elements tab by default; if not, click Elements at the top of the panel.
  5. Pick an element. Click the crosshair icon at the top-left of the Elements tab (or press Command+Shift+C). Move the pointer over the page: elements highlight as you hover. Click the element you want to inspect.
  6. Read the DOM tree. The selected element is highlighted in the HTML tree. Expand or collapse nodes with the disclosure triangles. The right side shows the element’s CSS rules, computed styles, and the box model (margin, border, padding, size).
  7. Right-click for quick actions. You can also right-click (or Control-click) any element on the page and choose Inspect Element. This opens the inspector directly on that element.
  8. Edit temporarily. Double-click an attribute or text in the Elements tab to edit it. Changes are live but temporary; they disappear when you reload the page. Use the Styles pane to toggle CSS rules on and off with the checkboxes.
  9. Use other tabs as needed. Console shows JavaScript errors and lets you run commands. Network lists requests and their timings. Sources lets you set breakpoints in JavaScript. Storage shows cookies and local storage. These tabs are for debugging, not for changing the live site permanently.
  10. Close the inspector with Option+Command+I again or the close button on the panel.

Note for iPhone and iPad: Safari on iOS does not include the Web Inspector. This requires a Mac; Windows PCs cannot use Safari’s Web Inspector for iOS devices.

Common Mistakes

  • Looking for the Develop menu before enabling it. It is hidden by default. The setting is in Safari > Settings > Advanced.
  • Expecting edits to stick. Changes made in the Elements tab are local and temporary. They do not affect the website for anyone else and are lost on reload.
  • Confusing the Elements tab with the page source. The Elements tab shows the live DOM after JavaScript runs, not the original HTML file. Use Develop > Show Page Source for the raw source.
  • Using Safari on Windows. Safari for Windows is discontinued and does not include the current Web Inspector. Use a Mac for Safari inspection.
  • Inspecting on iPhone without a Mac. The iOS Web Inspector requires a connected Mac. There is no built-in inspector on the device itself.
  • Assuming the inspector works on every page. Some pages block inspection or run in a context where the inspector is limited. If the Develop menu is greyed out, check that the page is a normal web page and not a browser-internal screen.

Tips

  • Use the crosshair (Command+Shift+C) to jump straight to an element instead of scrolling the DOM tree.
  • Right-click an element and choose Inspect Element for the fastest route from page to code.
  • In the Styles pane, uncheck a rule to see its effect without deleting it. This is useful for testing layout changes.
  • Use the box model diagram at the bottom of the Styles pane to see exact margin, border, padding and content sizes.
  • Press Command+F inside the Elements tab to search the DOM by tag, class or text.
  • Keep the Console open while testing; JavaScript errors often explain why an element behaves unexpectedly.
  • If the inspector feels cramped, drag its edge or use the dock controls to undock it into a separate window.

Troubleshooting

  • The Develop menu is missing. Re-check Safari > Settings > Advanced and make sure the developer features checkbox is ticked. If your Mac is managed by an organisation, settings may be locked; contact your administrator.
  • Option+Command+I does nothing. The shortcut only works when the Develop menu is enabled. Use the menu path instead to confirm.
  • Inspect Element is greyed out in the right-click menu. This can happen on certain pages or when the page is not fully loaded. Reload the page and try again. If it remains greyed out, the page may restrict inspection.
  • The inspector opens but shows no styles. Select an element in the Elements tab first; the Styles pane populates only when an element is selected.
  • Your device does not appear in the Develop menu. Make sure the iPhone or iPad is unlocked, connected with a cable, and has Web Inspector enabled under Settings > Safari > Advanced. Trust the computer if prompted on the device.
  • Changes you make disappear. That is expected: inspector edits are temporary. To keep changes, you would need to edit the site’s own files, which is outside the browser.
  • Safari feels slow with the inspector open. Close other tabs and pause network recording when not needed. The Network tab can accumulate a lot of data on busy pages.

Frequently Asked Questions

Can I inspect elements in Safari on Windows?

No. Safari for Windows is discontinued and does not include the current Web Inspector. Use a Mac for Safari inspection, or use another browser’s developer tools on Windows.

Does inspecting an element change the website for other people?

No. All edits in the Web Inspector are local to your browser and temporary. They disappear when you reload or close the page.

Can I inspect a page on my iPhone without a Mac?

No. Safari on iOS does not have a built-in Web Inspector. You need a Mac connected by cable and the Web Inspector enabled on the device under Settings > Safari > Advanced.

What is the difference between View Source and Inspect Element?

View Source shows the original HTML sent by the server. Inspect Element shows the live DOM after JavaScript has run, which may include changes and additional elements.

Why is the Develop menu greyed out?

The Develop menu can be unavailable on certain browser-internal pages or when no normal web page is open. Open a regular website and try again. If it stays greyed out, check that developer features are enabled in Safari settings.

Can I use the Web Inspector to test CSS changes before editing my site?

Yes. The Styles pane lets you toggle rules and edit values live. Use it to preview changes, then copy the final values into your site’s stylesheet. Remember the changes are not saved by the browser.