I wants to show my html code in my web page as normal text. how to do it?

You can do this by using codes for the characters that are used in html. For example the “greater than” > and “less than” > symbols that are used on tags will be written as < and >
So:

<p>A Paragraph.</p>

would be written:

&lt;p&gt;A Paragraph.&lt;/p&gt;

This may be a but tedious to do, but if you use php you can use that to convert a string to this code using htmlentities .