Display HTML in HTML

Posted in HTML by

If you want to display HTML code to your visitors, you should continue reading. The solution is dead simple.

display HTML code in HTML

<html>...</html&gt

Instead of writing the opening and closing, you replace them with their escaped equivalent. &lt; and &gt;

the above exmaple would be

&lt;html&gt;...&lt;/html&gt

It is easy to rememeber, because lt means lower than and gt means greater than.

Published at , Updated at 2011-10-25

next: Introduction to HTML