In this tutorial, I will show you the easiest way to view a website page source in a browser. This method is applicable on most of the modern web browsers like Chrome, Safari and Firefox. I don’t know about others, but if it worked please let me know through comments. So let’s start.

The only thing you have to do is to insert view-source: before the website URL.
For example, You want to view my page’s source. Now the only thing you have to do is insert view-source: before my URL i.e. view-source:

That’s it…!!!

I am not sure but you can also view source via this method on a mobile (In the above-mentioned browsers).

So try it and comment if something goes wrong… Till then Happy Coding!!