Related “How to Update or Install Python 3 on Mac?“.
How to View Source Code
The keyboard shortcut is Option+Command+U. You may right click on the webpage and click on the option “Show Page Source.”
How to Activate Develop Mode in Safari
The first thing you need is to activate the Development menu in Safari. To activate, go to Safari > Preferences menu, inside the Advanced tab we activate Show the Develop menu in the menu bar.
After activating, open the website you want to view source code, and then in the Develop menu we choose Show page source code or we press Option (⌥) + Command (⌘) + U. We will see all the source code appear at the bottom of the screen. The code display is divided into two parts.
And that easy. When we need to see the source code of a web page, either to download a video that appears on it or for development purposes, using Safari on our Mac we will do it easily. Below is the detailed step by step guide to making your work easy. Check it out.