Thursday, March 3, 2011

How can i display html tags in web pages

We can’t display html tags as it is to get displayed in the browser. Say for example you want to give html code to your visitor to place a link in their web site, pointing to your site. To display html tags in html format we have to use different ways. Browser will not display any thing within less than and greater than symbols. Browser will not display < character as it is. To display symbol < we have to write < , same way to display greater than character > we have to use >

<a href="http://www.w3schools.com/">Visit W3Schools</a>

you can use insted of < & (ampersand) lt (less then); and for > &(ampersand)gt(greater then);

No comments:

Post a Comment