Lompat ke konten Lompat ke sidebar Lompat ke footer

how to see the code of a website

Download Article

Download Article

This wikiHow teaches you how to view the source code of a website, which is the code behind any website (such every bit HTML, CSS, and JavaScript), on most common browsers. Excluding a Safari fob, yous cannot view a website'due south source code while using a mobile browser.

  1. i

    Open your web browser. The process for viewing source code on Chrome, Firefox, Microsoft Edge, and Internet Explorer is the aforementioned.

  2. 2

    Navigate to a webpage. It should be a page whose source code y'all wish to view.

    Advertisement

  3. iii

    Right-click the page. If you're using a Mac computer with a one-button mouse, y'all can hold down Command and click instead. If y'all are on a laptop with a trackpad, you tin utilize ii fingers to click the folio instead. This will invoke a drib-downwards menu.

    • Don't right-click a link or a photo when doing this or else the wrong menu will appear.
  4. 4

    Click View page source or View Source . Doing then will display your browser'due south source lawmaking in a new window or at the bottom of the current window.

    • Y'all'll see View page source for Chrome and Firefox, and View Source for Microsoft Edge and Internet Explorer.
    • You can besides press Ctrl+U (PC) or Choice+ Control+U (Mac) to brandish the source lawmaking.

    Advertisement

  1. 1

    Open up Safari. This is a blue, compass-shaped app.

  2. 2

    Click Safari . Information technology'south in the top-left side of your Mac's menu bar. Doing so invokes a drop-down menu.

  3. 3

    Click Preferences . This pick is in the center of the drop-downwards carte.

  4. 4

    Click the Advanced tab. Information technology'southward in the top-correct corner of the Preferences window.

  5. 5

    Check the "Show Develop menu in menu bar" box. This pick is most the bottom of the Preferences window. You should see a Develop card announced in your Mac's menu bar.

  6. 6

    Navigate to a webpage. Information technology should be a page whose source lawmaking you wish to view.

  7. 7

    Click Develop . This card is to the left of the Window menu in your Mac'southward menu bar.

  8. 8

    Click Bear witness Page Source . It'due south near the lesser of the drop-downward carte du jour. Clicking this option volition prompt Safari to display the webpage's source code.

    • Y'all can besides press Option+ Control+U to display the source lawmaking.

    Advertisement

  1. 1

    Navigate to the page you desire to view the wiki source lawmaking for.

  2. two

    Click on the "View source" or "Edit" tab.

  3. 3

    Curl through the source and select/re-create the code you want to copy on your site.

    Advert

Add New Question

  • Question

    The view source doesn't be on my Mac, where do I discover information technology?

    Community Answer

    To exist able to view the source lawmaking of a webpage under Safari, you first demand to enable the Developer menu: Click on Safari bill of fare > Preferences > Advanced. Check "Show Develop menu in menu bar" Close the Preferences window Go to the Develop bill of fare > Bear witness Page Source

  • Question

    How practice I view the source code of an image on a page without seeing the lawmaking for the whole page?

    Community Answer

    Right-click on the prototype and select "Inspect" from the available options.

  • Question

    How do I create HTML source code for an image that I take on my computer?

    Community Answer

    Add the image location on your computer to the source code. Make sure the file is available and and then run.

  • Question

    To display an image, there must exist code specifying the position and the equivalent of a hex value for each pixel. How to view this code?

    Pingu

    You need to detect the image file and download information technology first. You can and so look at its "source lawmaking" by opening information technology in a text editor. Only it will usually appear to you equally some unreadable combination of characters. The outset reason for this is that the image uses binary numbers, and the text editor interprets each byte every bit a character with that Unicode/ASCII/encoding-y'all-use value. A solution to that is hexdump. The 2nd reason is that many image formats compress the epitome somehow. And so not every number combination really represents a pixel. So either inform yourself about your paradigm's format and how to decompress it, or use a format that doesn't compress in the showtime place, like PNM, not similar PNG.

  • Question

    How do I view the source code before an automated redirect moves me when trying to view source code?

    A_random_reader

    A_random_reader

    Customs Answer

    There are two things that may take happened: one. Forced server side redirect: There's goose egg to do about it. ii. Client side redirect: Brand a hyperlink to the Web page, then right click the link and download the file. Open with a text editor.

Inquire a Question

200 characters left

Include your e-mail address to go a message when this question is answered.

Submit

Advertisement

  • While y'all tin 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.

Advertizement

  • Be wary of downloading third-party applications that claim to brandish the source code of a website.

Advertizement

About This Article

Article Summary X

1. Open up the website in a browser.
ii. Right-click the page.
iii. Click View page source or View source.

Did this summary assistance you?

Thanks to all authors for creating a folio that has been read 851,306 times.

Is this article up to appointment?

how to see the code of a website

Source: https://www.wikihow.com/View-Source-Code

Posting Komentar untuk "how to see the code of a website"