How to Display HTML code on a Webpage

How to Display HTML code on a Webpage

You must've tried adding some piece of html/javascript to a blog post at some point. And to your dismay, the code simply refused to show itself! Instead what you got was the output of the code. For example, to display the html code for adding a simple anchorĀ  text-link, <a href="http://shoutmeloud.com">Shoutmeloud</a> you might have gone crazy, with the result being Shoutmeloud In order to prevent this, you can use any of the following ways : 1. Convert all your '<' and '>' to '&lt' and '&gt' (10 comments)