How to view the source code of a website

in Mozilla Firefox, posted Oct 25th 2011

Learn how to view the page source in Firefox.

To view the HTML source code a website in Firefox you can click with the mouse right button to bring up the contextual menu, and use the "View Page Source" option.

Firefox contextual menu view source option

Also, the "Web Developer" menu has the same "View Page Source" option; if you're using the menu bar, you can find that menu under the "Tools" menu, and if you're using the new Firefox menu button, you'll find it in the first column, just under "Print".

Firefox Web Developer menu view page source action

Also, Firefox has a keyboard shortcut for viewing the source code; just press "Ctrl" and "U" simultaneously, and the source for the current page will open.