Monday, 21 November 2016

Viewing code on webpages

Sometimes we want to be able to view the code on web pages. the easiest way to do view a web page's source code is to key Ctrl & U. If that doesn't work, we can usually right click and select "View page source" from the pop-up menu.

However, sometimes web designers like to disable our ability to view their code, so neither Ctrl & U nor the pop-up menus work (if you have an old version of Internet Explorer, you should find that Ctrl & U will work despite any restrictions that web designers have implemented).

If you use Firefox, there is an alternative solution to force pages to cough up how they run. All you need to do is to: 
  • Copy the URL of the page you want to view the source code on
  • Open a new tab
  • In the new tab address line, key "view-source:", then paste the URL directly afterwards
  • The Tab will now show the page's source code, like the image above.
This can be particularly useful when you are wanting to link to a particular file, or simply to explore how a designer has created a particular look or effect.


No comments :

Post a Comment