IT Fixes..

Solutions to common IT related issues

Display HTML code on a website

Posted by Daman Dang on June 9, 2008

Please visit http://www.ezitfixes.com

HTML is used to design a website but what if you want to display a sample HTML code in a website?? The browser will consider your sample code just as the rest of the HTML code and parse it in a similar way, removing all the tags before it displays the content on the website.

To display some HTML code, you need to use escape characters for all the special characters defined in HTML. The following link has a HTML Encoder/Decoder which can generate the code that should be inserted to achieve the desired HTML code form as output.

HTML Encoder

Just input the code you desire to display and copy paste the encoded code in your HTML file.

Enjoy !!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>