How to view source code in Safari?

Viewing the source code of a page lets web designers and developers achieve their preferred layout. It helps them debug websites quickly by just viewing the source of web pages. Advanced Mac users can benefit greatly from viewing the page sources on a webpage. You can troubleshoot and fix webpage-related issues, adjust styling in the code, and learn different optimization techniques.

Following are steps to view source code in Safari browser.

  • Open your Safari browser and navigate to the web page you wish to view.
  • From the top menu bar, select Develop > Show Page Source. You can also press Option+Command+U on your keyboard.
How to view source code in Safari

If the Develop menu is not visible, go to Preferences > Advanced, and choose the Show Develop menu in menu bar.

LambdaTest

Test your websites, web-apps, or mobile apps seamlessly with LambdaTest.

Start Free Testing
LambdaTest

Earn resume-worthy Selenium certifications that help you land a top job.

Learn More
LambdaTest

Test your web or mobile apps

Test orchestration and execution cloud of 3000+ browsers and OS

Support

24/7 support

Security

Enterprise grade security

Cloud

Fastest test execution cloud