Home > Internet, Programming > Display HTML code on a website

Display HTML code on a website





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 !!

Internet, Programming

Your Ad Here
Ad by AdBrite


  1. June 15th, 2009 at 00:54 | #1

    Hi, gr8 post thanks for posting. Information is useful!

  2. Daman Dang
    June 15th, 2009 at 03:44 | #2

    am glad this information was useful to you.

  3. June 16th, 2009 at 15:13 | #3

    I think I will try to recommend this post to my friends and family, cuz it’s really helpful.

  1. No trackbacks yet.