[ad_1]
Steps
{“smallUrl”:”https://www.wikihow.com/images/thumb/a/a4/View-Source-Code-Step-1-Version-6.jpg/v4-460px-View-Source-Code-Step-1-Version-6.jpg”,”bigUrl”:”/images/thumb/a/a4/View-Source-Code-Step-1-Version-6.jpg/aid714242-v4-728px-View-Source-Code-Step-1-Version-6.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
1
Open your web browser. The process for viewing source code on Chrome, Firefox, Microsoft Edge, and Internet Explorer is the same.
{“smallUrl”:”https://www.wikihow.com/images/thumb/1/11/View-Source-Code-Step-2-Version-6.jpg/v4-460px-View-Source-Code-Step-2-Version-6.jpg”,”bigUrl”:”/images/thumb/1/11/View-Source-Code-Step-2-Version-6.jpg/aid714242-v4-728px-View-Source-Code-Step-2-Version-6.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
2
Navigate to a webpage. It should be a page whose source code you wish to view.
{“smallUrl”:”https://www.wikihow.com/images/thumb/6/6f/View-Source-Code-Step-3-Version-6.jpg/v4-460px-View-Source-Code-Step-3-Version-6.jpg”,”bigUrl”:”/images/thumb/6/6f/View-Source-Code-Step-3-Version-6.jpg/aid714242-v4-728px-View-Source-Code-Step-3-Version-6.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
3
Right-click the page. 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.
{“smallUrl”:”https://www.wikihow.com/images/thumb/4/49/View-Source-Code-Step-4-Version-6.jpg/v4-460px-View-Source-Code-Step-4-Version-6.jpg”,”bigUrl”:”/images/thumb/4/49/View-Source-Code-Step-4-Version-6.jpg/aid714242-v4-728px-View-Source-Code-Step-4-Version-6.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
4
Click View page source or View Source . 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.
{“smallUrl”:”https://www.wikihow.com/images/thumb/3/3d/View-Source-Code-Step-5-Version-5.jpg/v4-460px-View-Source-Code-Step-5-Version-5.jpg”,”bigUrl”:”/images/thumb/3/3d/View-Source-Code-Step-5-Version-5.jpg/aid714242-v4-728px-View-Source-Code-Step-5-Version-5.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
1
Open Safari. This is a blue, compass-shaped app.
{“smallUrl”:”https://www.wikihow.com/images/thumb/5/57/View-Source-Code-Step-6-Version-5.jpg/v4-460px-View-Source-Code-Step-6-Version-5.jpg”,”bigUrl”:”/images/thumb/5/57/View-Source-Code-Step-6-Version-5.jpg/aid714242-v4-728px-View-Source-Code-Step-6-Version-5.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
2
Click Safari . It’s in the top-left side of your Mac’s menu bar. Doing so invokes a drop-down menu.
{“smallUrl”:”https://www.wikihow.com/images/thumb/8/8a/View-Source-Code-Step-7-Version-5.jpg/v4-460px-View-Source-Code-Step-7-Version-5.jpg”,”bigUrl”:”/images/thumb/8/8a/View-Source-Code-Step-7-Version-5.jpg/aid714242-v4-728px-View-Source-Code-Step-7-Version-5.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
3
Click Preferences . This option is in the middle of the drop-down menu.
{“smallUrl”:”https://www.wikihow.com/images/thumb/e/ed/View-Source-Code-Step-8-Version-5.jpg/v4-460px-View-Source-Code-Step-8-Version-5.jpg”,”bigUrl”:”/images/thumb/e/ed/View-Source-Code-Step-8-Version-5.jpg/aid714242-v4-728px-View-Source-Code-Step-8-Version-5.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
4
Click the Advanced tab. It’s in the top-right corner of the Preferences window.
{“smallUrl”:”https://www.wikihow.com/images/thumb/f/f3/View-Source-Code-Step-9-Version-5.jpg/v4-460px-View-Source-Code-Step-9-Version-5.jpg”,”bigUrl”:”/images/thumb/f/f3/View-Source-Code-Step-9-Version-5.jpg/aid714242-v4-728px-View-Source-Code-Step-9-Version-5.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
5
Check the “Show Develop menu in menu bar” box. This option is near the bottom of the Preferences window. You should see a Develop menu appear in your Mac’s menu bar.
{“smallUrl”:”https://www.wikihow.com/images/thumb/5/50/View-Source-Code-Step-10-Version-5.jpg/v4-460px-View-Source-Code-Step-10-Version-5.jpg”,”bigUrl”:”/images/thumb/5/50/View-Source-Code-Step-10-Version-5.jpg/aid714242-v4-728px-View-Source-Code-Step-10-Version-5.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
6
Navigate to a webpage. It should be a page whose source code you wish to view.
{“smallUrl”:”https://www.wikihow.com/images/thumb/e/ec/View-Source-Code-Step-11-Version-5.jpg/v4-460px-View-Source-Code-Step-11-Version-5.jpg”,”bigUrl”:”/images/thumb/e/ec/View-Source-Code-Step-11-Version-5.jpg/aid714242-v4-728px-View-Source-Code-Step-11-Version-5.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
7
Click Develop . This menu is to the left of the Window menu in your Mac’s menu bar.
{“smallUrl”:”https://www.wikihow.com/images/thumb/0/0d/View-Source-Code-Step-12-Version-5.jpg/v4-460px-View-Source-Code-Step-12-Version-5.jpg”,”bigUrl”:”/images/thumb/0/0d/View-Source-Code-Step-12-Version-5.jpg/aid714242-v4-728px-View-Source-Code-Step-12-Version-5.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
8
Click Show Page Source . It’s near the bottom of the drop-down menu. Clicking this option will prompt Safari to display the webpage’s source code.
You can also press ⌥ Option +⌘ Command +U to display the source code.
{“smallUrl”:”https://www.wikihow.com/images/thumb/8/80/View-Source-Code-Step-13-Version-4.jpg/v4-460px-View-Source-Code-Step-13-Version-4.jpg”,”bigUrl”:”/images/thumb/8/80/View-Source-Code-Step-13-Version-4.jpg/aid714242-v4-728px-View-Source-Code-Step-13-Version-4.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
1
Navigate to the page you want to view the wiki source code for.
{“smallUrl”:”https://www.wikihow.com/images/thumb/a/aa/View-Source-Code-Step-14-Version-5.jpg/v4-460px-View-Source-Code-Step-14-Version-5.jpg”,”bigUrl”:”/images/thumb/a/aa/View-Source-Code-Step-14-Version-5.jpg/aid714242-v4-728px-View-Source-Code-Step-14-Version-5.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
2
Click on the “View source” or “Edit” tab.
{“smallUrl”:”https://www.wikihow.com/images/thumb/e/e1/View-Source-Code-Step-15-Version-5.jpg/v4-460px-View-Source-Code-Step-15-Version-5.jpg”,”bigUrl”:”/images/thumb/e/e1/View-Source-Code-Step-15-Version-5.jpg/aid714242-v4-728px-View-Source-Code-Step-15-Version-5.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”><p>License: <a target=”_blank” rel=”nofollow noreferrer noopener” class=”external text” href=”https://en.wikipedia.org/wiki/Fair_use”>Fair Use</a> (screenshot)<br>n</p></div>”}
3
Scroll through the source and select/copy the code you want to copy on your site.
While you can’t usually view source code on a mobile browser, you can save a Safari bookmark on iPhone or iPad to view mobile Safari source code.
Thanks for submitting a tip for review!
Be wary of downloading third-party applications that claim to display the source code of a website.
[ad_2]
Source link : https://www.wikihow.com/View-Source-Code