How to Display Html code in a web page

Add the short and simple &lt xmp &gt &lt /xmp &gt tag to the particular piece of code you want to display as it is.
Or convert all your < and > to &lt and &gt respectively
Here a helpful utility sHTMLc
sHTMLc (show HTML code) is meant for those who write HTML tutorials published on the Internet and therefore have to present HTML code to the reader.
This means that some code must be changed in order to show correctly. sHTMLc converts the code you copy to the clipboard.