How to View A Website’s Source Code

View Source Code

The ability to view a website’s source code is built-in most modern web browsers. The source code allows you to view how the website was coded, in other words put together, it also gives you a glimpse of certain data that would not be available to you by just browsing the website. You can view things like a website’s Meta Tags, which contain important information like keywords, author email, and other useful information, and you can see what services the website publisher uses.

So why should you care about other website’s meta tags, services, etc? Well I’ll give you my example, as a publisher I’m constantly on the lookout for new things to provide my readers on my website, whether it’s enhancements, design, or other features. When I visit a website that has something which I would like to implement on my site, I normally take a look under the hood (the source code) to see what the publisher is doing or using that I could implement on my site. I see it as a way to discover "best practices" among web publishers and designers. The guide below will demonstrate where this option resides in 3 popular browsers; Internet Explorer, Firefox, and Opera. If you have any comments or questions, please post them below.

Note: I used Internet Explorer 7, Firefox 3.04, and Opera 9.62 for this tutorial.

-Internet Explorer

Internet Explorer Source Code View

1. Click on the Page > View Source (located to the right)

Internet Explorer Source Code View

2. Notepad will open with unformatted code

-Mozilla Firefox

Firefox Source Code View

1. Click on View > Page Source or keyboard shortcut (Ctrl + U)

Firefox Source Code View

2. A separate Firefox window will open with the formatted/color coded source code


-Opera

Opera Source Code View

1. Click on View > Source or keyboard shortcut (Ctrl + U)

Opera Source Code View

2. A new tab will open with the formatted/color coded source code.

 

The Verdict

So which browser is best for displaying source code? Well Firefox and Opera are tied, they both display the source code formatted and color coded, whereas Internet Explorer opens notepad and dumps the code unformatted. In the end it all depends on your preference.

 

Article posted on 11 18th, 2008

Related & Suggested Posts

  1. How to Publish Your Own Website or Blog Series
  2. Use iColor Folder to Color Code Your Folders
  3. Internet Explorer 7 Beta 3 Is Now Available
  4. Why Firefox is NOT ‘Safer, Faster, Better’
  5. How to Delete Your Browser History

Daily Email Updates

To receive the latest how-to's on Windows, Google, and other programs in your inbox, just enter your email below.


Enter your email address:

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.



Leave a Comment

Note: I discourage users from using keywords in their names when posting comments, most of those are caught as spam and end up being deleted. It would be more productive and interactive if commentators use the name they go by rather than using an unrelated name. In the future I reserve the right to delete comments from users using a name other than their own.

Connect with Gil via
Connect with Gil
Facebook | Twitter | Digg | SU | LinkedIn
Who's behind Gil's Method?
My Name is Gilberto J Perera and I'm the editor behind Gil's Method. I started this blog to help relatives with computer questions. Since then the blog has grown to the collection of articles you see today, I hope that you find this blog useful and that you come back again.
Read more at my about page
Other Resources

Books

Forum

Store (Coming Soon)