printing "<html>" using html

Viewed 5148

How do I print the "html" tag, including '<' and '>'? How can I do this for any tag, without using text areas and Javascript?

10 Answers

portrayal of linkTo put < and > characters in HTML, you have to input their corresponding character sequences. For example, <'s sequence is &lt; while >'s sequence is &gt;. If you replace all the < and > with their corresponding characters you will be able to present the HTML code in your website. However, this process can be a bit tedious. This is why there are tools on the internet that help you do this. For example:

  1. https://displayhtmlcode.pythonanywhere.com/ (A very simple website that does just what you need it to do.)

Best and easyest way:

 <xmp>
// your codes ..
</xmp>
Related