How To View Source Code Of Any Website.

  • EMMANUEL 

Source code is a set of instructions or commands and statements written by a programmer using any computer programming language. This code is later translated into machine language by a compiler. The translated code is referred to as object codes.

It contains declarations, instructions, functions, loops and other statements, which act as instructions for the program on how to function or execute. Programs may contain one or more source code text files, which can be stored on a computer’s hard disk, in a database, or be printed in books of code snippets.

Programmers can add comments to their source code to help other developers understand it. Short scripts can also be run from source code using a scripting engine such as VBScript or the PHP engine.

While large programs frequently reference hundreds or thousands of files, it is not uncommon for small programs to use just one source code. If there are many source files, the program may be organized into different sections. If a single file contains all the program’s variables and functions, it can be hard to locate specific sections of the code.

What can one do with source Code:

Source code help programmer to verify codes, like to check if Google adsense code, Google analytical code and many other codes key in to program is same with what was provided.

How to see view any site source Code:

PC

Firefox – CTRL + U (Meaning press the CTRL key on your keyboard and hold it down. While holding down the CTRL key, press the “u” key.) Alternatively, you can go to the “Firefox” menu and then click on “Web Developer,” and then “Page Source.”

Internet Explorer – CTRL + U. Or right click and select “View Source.”

Chrome – CTRL + U. Or you can click on the weird-looking key with three horizontal lines in the upper right hand corner. Then click on “Tools” and select “View Source.”

Opera – CTRL + U. You also can right click on the webpage and select “View Page Source.”

Mac

Safari – The keyboard shortcut is Option+Command+U. You also can right click on the webpage and select “Show Page Source.”

Firefox – You can right click and select “Page Source” or you can navigate to your “Tools” menu, select “Web Developer,” and click on “Page Source.” The keyboard shortcut is Command + U.

Chrome – Navigate to “View” and then click on “Developer” and then “View Source.” You also can right click and select “View Page Source.” The keyboard shortcut is Option+Command+U.

Mobile phone

To view source code on mobile is quite simple just follow the instructions below:

Google Chrome :

Open the site and click the address bar.

Enter “view-source:example.com” then go. Assuming you want to check the source of google.com, visit Google.com then add view-source:google.com and press go to view

If you want to check a particular code on it, click option(:) at the top right hand side. Click find in page to search for a particular code.

Leave a Reply