esiste un tag che fa questo...

<xmp>

codice HMTL

</xmp>

oppure puoi usare

<pre>
codice HTML

</pre>