Skip to main content
  1. Home
  2. Computing
  3. How tos

How to use Inspect Element on Mac using the Safari browser

Add as a preferred source on Google
Inspect Element open in Safari on Mac.
Image used with permission by copyright holder

If you’re just getting started as a front-end developer or need to debug errors while testing web applications, Safari is likely in your list of browsers to check for compatibility. With this comes the need for a tool called Inspect Element.

Going beyond just checking the source code of a page, Inspect Element lets you view everything going on behind the scenes of a webpage. You can see the HTML, style sheets, media, and other elements, all in one spot. Here’s how to use Inspect Element on MacOS.

Recommended Videos

Difficulty

Moderate

Duration

10 minutes

What You Need

  • Mac computer

  • Safari browser

Enable Inspect Element for Safari on Mac

Before you can use the Inspect Element tool on Mac, you need to enable it in Safari.

Step 1: Open Safari and click Safari > Preferences from the menu bar.

Step 2: Select the Advanced tab.

Step 3: Check the box for Show Develop menu in menu bar.

Inspect Element is now available and ready for you to use in Safari. You may need to update Safari before proceeding.

how to inspect element on mac preferences show develop safari
Image used with permission by copyright holder
how to inspect element on mac open safari
Image used with permission by copyright holder

Open Inspect Element in Safari

With the tool enabled. you can access it a couple of different ways. If you want to look at a particular element on the page, you can select it first. Otherwise, you can simply open Inspect Element and select it from there.

Either click Develop > Show Web Inspector from the menu bar or right-click the page and pick Inspect Element from the shortcut menu.

How to Use Inspect Element on Mac

Once you open Inspect Element, you’ll have all the tools you need to review every item on the webpage. And there are a lot of tools at your fingertips. Let’s take a look at the basics of using Inspect Element.

Step 1: Move and resize Inspect Element.

You can dock the tool at the bottom or on the side of the page or pop it out to a separate window. Use the icons on the top left of the inspector toolbar to move it where you want. If you dock the tool, you can drag the border to increase or decrease its size.

how to inspect element on mac move safari
Image used with permission by copyright holder

Step 2: Customize the tabs.

Inspect Element provides nine tabs for you to work with across the top of the toolbar. These include Elements, Storage, Layers, and Timelines. You can hide those you don’t need if you like. Right-click a tab and then select the ones you want to see. This places checkmarks next to them and puts the tabs in the toolbar.

how to inspect element on mac select tabs safari
Image used with permission by copyright holder

Step 3: Inspect an element.

To select items on the page to display in the tool, click the compass icon in the toolbar. Then, drag through or click the element on the page. You can also select the code or item in the tool for that element to display on the page.

how to inspect element on mac select safari
Image used with permission by copyright holder

Step 4: Search for an element.

If you want to find a specific item on the page such as a text string, click the search icon on the right of the toolbar. Enter your search term into the box on the left and view your results directly beneath.

how to inspect element on mac search safari
Image used with permission by copyright holder

Step 5: View warnings or errors.

If the tool detects warnings or errors on the page, you’ll see these icons display in the toolbar as well. Click an icon to view either the warnings or errors.

how to inspect element on mac errors safari
Image used with permission by copyright holder

Step 6: Adjust the settings.

To change the appearance of Inspect Element, show page rulers, enable source maps, zoom, and more, click the gear icon on the far right of the toolbar to open the Inspect Element settings.

how to inspect element on mac settings safari
Image used with permission by copyright holder

When you finish using Inspect Element in Safari, click the X on the top left of the toolbar to close it.

You can take your code inspection, mobile app coding and development, or testing and debugging to the next level with Inspect Element on Mac for Safari.

Sandy Writtenhouse
Sandy has been writing about technology since 2012. Her work has appeared on How-To Geek, Lifewire, MakeUseOf, iDownloadBlog…
AI slop stories are spoiling the childhood
Grandparents are gifting AI-generated story books to kids, and it's just gross.
A child reading a book.

AI slop, the colloquial term for low-effort AI-generated content, has emerged as a huge problem across different industries. Music labels are fighting streaming services to put an AI label on such tra/cks. Publishing houses are wary of AI-written drafts. Research journals are buried under a deluge of AI-generated papers. The software industry is reeling under the pressure of vibe-coded apps brimming with security flaws. Even Apple is struggling against a tide of bug reports created using AI. Of course, the disdain against AI is pretty obvious, but there's now a new dimension to it.

Boomers are gifting AI-generated books to their grandkids.

Read more
The MacBook Air is running in short supply, despite a price hike
The memory crunch is now disrupting MacBook Air supplies
MacBook Air M5

For months, Apple seemed better protected from the memory crisis than most laptop makers. It had long-term supplier agreements, enormous purchasing power, and enough margin to absorb rising component costs. The situation has now caught up with its most popular laptop.

According to Bloomberg’s Mark Gurman, MacBook Air availability has tightened considerably across Apple’s retail network. Several configurations are showing delivery estimates stretching into late August, while some customized models may not arrive until September.

Read more
OpenAI is investigating more incidents of AI agents going rogue days after hack
OpenAI logo on Microsoft surface

It appears that the "AI agents going rogue" tale has more to it than what AI giants have revealed publicly so far. Merely days after OpenAI announced that its AI agents went rogue and hacked Hugging Face, Anthropic dropped a similar bombshell. Soon, it was discovered that not just one, but multiple services were compromised. Well, it seems there are even more layers to it.

Reuters reports that OpenAI has found more incidents of AI agents escaping their software containment environment during research. Citing sources with knowledge of the incident, the outlet notes that the AI agents didn't go beyond OpenAI's software environment and affect any external service.

Read more