How to get Source Code of any website ?
Last Updated :
04 Dec, 2023
A Website is defined as a collection of web pages. A website can be designed using HTML, CSS, Bootstrap, etc. HTML language decides what will appear on the webpage and CSS language depicts how it will appear Suppose we see a website eg. geeksforgeeks.org, and we want its source code then there are two ways to get it:
Method 1: Using Inspect ElementÂ
Below is the step-by-step implementation.
Step 1: Visit your desired website eg geeksforgeeks.org.
Step 2: Click on Inspect.
Step 3:Â You will get code on right-hand side.
Short Cut Key:Â
(Ctrl + Shift + I )
Method 2: Using Page Source
Step 1: Visit your desired website eg geeksforgeeks.org.
Step 2: Right click on website and click on “View Page Source”.
Step 3: You will get source code as following.Â
Shortcut Key
CTRL + U
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...