How to view page source (source code of a web pageThis part is easy.
FireFox browserFor FireFox browser, my favorite browser, at the top of the browser, click on VIEW > PAGE SOURCE in the menu bar. To make this clearer, see screenshot below:
When you click "Page source", a new window will open with the source code used to display that web page. Actuall, the option says "Page source ctrl+U" which tells us that there is a keyboard short-cut. When you press the control plus U keys simultaneously, you will get the same result, but I prefer the above.