How To Open Source Code Of A Website In Android

Whether you’ve just started into web development or learning and exploring how things work behind the scenes, it helps a lot to view the HTML source code behind a certain website. Well, you can easily do that right from your Android or iOS device.


Most of the times, when we visit a nice looking website, we always want to look at it’s HTML source code. On desktop browsers, we simple just right-click and click on “view page source” from the context menu but there’s no option like this on mobile devices. So then, how do we view the source code on a mobile device?

Steps to view source code

  1. Visit the website which you want to view it’s source code.
    A screenshot of Google's homepage
  2. Click inside the address bar and append view-source: before the url of the website.
    view source being highlighted
  3. Click the send button and the page will load with the source code of the file.
    Google's website

Conclusion

Even though I used Chrome’s mobile browser, the method is the same in all the major browsers.

0 Comments

No Comment.