---
title: Viewing the HTML source in Safari | TestingBot
description: You can view the HTML source code of any webpage on Safari with the Developer
  Tools.
source_url:
  html: https://testingbot.com/software-testing-questions/how-to-view-source-code-in-safari
  md: https://testingbot.com/software-testing-questions/how-to-view-source-code-in-safari.md
---

# How to view source code in Safari?

- [![Share on Facebook](https://static.addtoany.com/buttons/facebook.svg) ](https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fhow-to-view-source-code-in-safari.md&linkname= "Share on Facebook")
- [![Share on Twitter](https://static.addtoany.com/buttons/twitter.svg) ](https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fhow-to-view-source-code-in-safari.md&linkname= "Share on Twitter")
- [![Share on LinkedIn](https://static.addtoany.com/buttons/linkedin.svg) ](https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fhow-to-view-source-code-in-safari.md&linkname= "Share on LinkedIn")
- [![Share on HackerNews](https://static.addtoany.com/buttons/y18.svg) ](https://www.addtoany.com/add_to/hacker_news?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fhow-to-view-source-code-in-safari.md&linkname= "Share on HackerNews")

Every Safari browser on macOS comes with the option to enable Developer Tools. To enable the developer tools, please follow the steps below.

## Enable Safari Developer Tools

1. Open Safari
2. Open the Safari settings menu 
3. Go to the 'Advanced' tab 
4. Toggle the checkbox 'Show Develop' menu in menu bar 

## View website source code in Safari

Now you can browse any website you want with Safari. On a page, right click the page and click 'Inspect Element' from the context menu.

With the developer tools opened, go to the "Sources" tab to see the HTML source code of the website.

For power users, there is a keyboard combination you can use to open the Developer tools: `Option+Command+U`.

## Testing on remote Safari browsers

TestingBot provides access to remote Safari browsers. Each browser comes with the default developer tools enabled.

During manual testing, you can simply inspect the source code of any webpage on TestingBot's remote safari browsers.

- [![Share on Facebook](https://static.addtoany.com/buttons/facebook.svg) ](https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fhow-to-view-source-code-in-safari.md&linkname=)
- [![Share on Twitter](https://static.addtoany.com/buttons/twitter.svg) ](https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fhow-to-view-source-code-in-safari.md&linkname=)
- [![Share on Linkedin](https://static.addtoany.com/buttons/linkedin.svg) ](https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fhow-to-view-source-code-in-safari.md&linkname=)
- [![Share on Hacker News](https://static.addtoany.com/buttons/y18.svg) ](https://www.addtoany.com/add_to/hacker_news?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fhow-to-view-source-code-in-safari.md&linkname=)

 ![TestingBot Logo](https://testingbot.com/assets/logo-head-2f7f08db4ac9c4a3b1a784047410f8a4ece708e7e9f10ed16e20fdd8310f8de3.svg)

## Sign up for a Free Trial

Start testing your apps with TestingBot.

No credit card required.

[Start Free Trial](https://testingbot.com/users/sign_up)

## Other Questions

### [How do you use a proxy during automated testing?](https://testingbot.com/software-testing-questions/how-to-use-a-proxy-for-automated-testing "How do you use a proxy during automated testing?")

### [What is a browser window?](https://testingbot.com/software-testing-questions/what-is-a-browser-window "What is a browser window?")

### [Cause and solutions for slow running Selenium tests.](https://testingbot.com/software-testing-questions/why-are-selenium-tests-running-slow-or-timing-out "Cause and solutions for slow running Selenium tests.")

### [Keyword Driven Testing examples and advantages](https://testingbot.com/software-testing-questions/what-is-keyword-driven-testing "Keyword Driven Testing examples and advantages")

### [What is Chrome for Testing?](https://testingbot.com/software-testing-questions/what-is-chrome-for-testing "What is Chrome for Testing?")

### [Why should I use Chromium for Testing?](https://testingbot.com/software-testing-questions/what-is-chromium "Why should I use Chromium for Testing?")
