Forum : print html tags on the page
Brief description  about Online courses   join in Online courses
View Bikash Kumar Singh 's Profile

print html tags on the page

How can I display html tags on webpage. for example I want <h1>....</h1> on the webpage the way it is with the < and > brackets. Normally it gets interpreted
Asked by Bikash Kumar Singh | Aug 27, 2009 |  Reply now
Replies (2)
View bikash kumar singh 's Profile
I used &lt;h1&gt;Hello &lt;/h1&gt which also solves the problems. BTW I got to know one more tag which is helpful. Many Thanks.
Aug 27, 2009
View navneet khanna 's Profile
Hi Bikash

Any tag you want to display on webpage, just put it in the <xmp> tag.

<xmp>
<h1>
hello
</h1>
</xmp>

I hope it solves your problem.
Aug 27, 2009