How to View Web Source
View Web Source is a handy skill to have, whether you’re a web developer or just curious. Here are several easy ways to view the HTML (hypertext markup language) source code for any website, on any platform:
All the main browsers offer a way to “View Source” pages. Generally, for any page, you can right-click and select “View Page Source” or something similar to reveal the page’s source code. Today’s mainstream browsers also include incredible dev tools that let you peer into the inner workings of a page and even make real-time tweaks to how the page executes.
To display the source code for a page in Chrome, Firefox, or Microsoft Edge, you can click or the menu button and select “View Page Source” or “Developer Tools”. You can also use the keyboard shortcut Ctrl+U (PC) or Option+Command+U (Mac).
Safari behaves a little differently, but no worries-it still has a convenient way to view a webpage’s source code. Open Safari, and navigate to the page whose code you want to see. Click the Safari icon in the top-left corner of the screen, and then click “Show Page Source”.
You can also view a page’s source code on iOS and Android devices by using a different browser or by installing a separate app from the App Store. For example, the stock Apple iOS browser doesn’t support the view-source command, but you can launch a different browser or the free, third-party Safari Browser Pro, which does.