How to View Source Code

Open your web browser., Navigate to a webpage., Right-click the page., Click View page source or View Source.

4 Steps 1 min read Easy

Step-by-Step Guide

  1. Step 1: Open your web browser.

    The process for viewing source code on Chrome, Firefox, Microsoft Edge, and Internet Explorer is the same.
  2. Step 2: Navigate to a webpage.

    It should be a page whose source code you wish to view. , If you're using a Mac computer with a one-button mouse, you can hold down Control and click instead.

    If you are on a laptop with a trackpad, you can use two fingers to click the page instead.

    This will invoke a drop-down menu.

    Don't right-click a link or a photo when doing this or else the wrong menu will appear. , Doing so will display your browser's source code in a new window or at the bottom of the current window.

    You'll see View page source for Chrome and Firefox, and View Source for Microsoft Edge and Internet Explorer.

    You can also press Ctrl+U (PC) or ⌥ Option+⌘ Command+U (Mac) to display the source code.
  3. Step 3: Right-click the page.

  4. Step 4: Click View page source or View Source.

Detailed Guide

The process for viewing source code on Chrome, Firefox, Microsoft Edge, and Internet Explorer is the same.

It should be a page whose source code you wish to view. , If you're using a Mac computer with a one-button mouse, you can hold down Control and click instead.

If you are on a laptop with a trackpad, you can use two fingers to click the page instead.

This will invoke a drop-down menu.

Don't right-click a link or a photo when doing this or else the wrong menu will appear. , Doing so will display your browser's source code in a new window or at the bottom of the current window.

You'll see View page source for Chrome and Firefox, and View Source for Microsoft Edge and Internet Explorer.

You can also press Ctrl+U (PC) or ⌥ Option+⌘ Command+U (Mac) to display the source code.

About the Author

J

Judy Wilson

A passionate writer with expertise in lifestyle topics. Loves sharing practical knowledge.

29 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: