Thursday, April 16, 2009

How to display HTML code on a web page

This article shows you how to display HTML tags or HTML code on a web page...
For example to display :

<b><i>This text is italic and bold</i></b>

instead of This text is italic and bold

You should replace the "<" and ">" by
"& lt;" and "& gt;" respectively.

Please note that there should be no space between "&" and "lt;" or "&" and "gt;"

No comments:

Post a Comment