Make a link to see the source of a pageTag(s): HTML/CSS
You have to specify the full "path", relative url won't work with the view-source protocol.
<html> <head> <title>view-source demo</title> </head> <body> <a href="view-source:http://www.rgagnon.com/examples/viewsource.htm"> view my source</a> </body> </html>
Try it here
<a href="example1.htm" onclick="location.href = 'view-source:' + this.href; return false">example1.htm</a>
Thanks to John Taylor-Johnston for this tip.