How can I show html codes?

liunx

Guest
I was just wondering how I can show html codes on my web site. I know there is a tag that you can do this with but I forgot it.<!--content-->the tag <code> Should set you right </code><!--content--><code> won't do it. That is just a formatting tag to set monospace fonts. the special character still have to be escaped.<br />
<br />
What you can use is <xmp> ... </xmp> That will ignore all special characters and render everthing as a literal. The only drawback is that it is a depreciated tag.<br />
<br />
The other altenative is to escape the < > with: < and ><!--content-->
 
Back
Top