To display HTML code in a HTML page, you need first to replace "<" and ">" with "<" and ">", then add <pre></pre> around them. Here is an example:
To display the following in a HTML page
<h2>Header</h2>
<p>This is my HTML code</p>
You actually have the following text in your HTML page
<pre><h2>Header</h2>
<p>This is my HTML code</p></pre>
No comments:
Post a Comment