ARCHIVED: How can I view the HTML code of web pages?

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.

How you see the HTML source code of a web document depends on the browser you're using. Follow the appropriate instructions below:

  • Firefox and Mozilla: Right-click the page and select View Page Source. To see the source of an individual frame, right-click or Ctrl-click the frame and select This Frame, and then View Frame Source.
  • Internet Explorer: From the View menu (IE 9) or the Page menu (IE 8), select Source.

    If the menu bar is hidden, press Alt to make it visible.

    To see the source for frames, right-click within the frame, and from the pop-up menu select View Source or View Frame Source.

  • Chrome: From the options wrench icon on the upper right, select Tools and then View Source, or right-click and select View page source. To see the source for frames, right-click within the frame, and from the pop-up menu, select Inspect Element.
  • Safari: In Safari 6, from the Preferences menu, click Advanced. In the window that opens, check Show Develop in Menu Bar. From the Develop menu that now appears, choose Show Page Source. Alternatively, you can right-click or Ctrl-click and select this same option.

    In earlier versions of Safari, from the View menu, select View Source. To see the source for frames, right-click or Ctrl-click within the frame, and from the pop-up menu, select View Frame Source.

  • Opera: Right-click and select Source from the menu. To see the source for frames, right-click within the frame, and from the pop-up menu, select Inspect Element.

This is document agao in the Knowledge Base.
Last modified on 2018-01-18 10:44:41.