Did the code tag work, Vincent?
If not, this the way the W3C Validator deals with the problem. They use this HTML code:
Code:
<pre>
<a href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</p>
</pre>
which resolves into this on page display
Code:
<a href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
I know it looks messy, but it's less complicated than it looks. Basically you do some substituting.
< = <
" = "
> = >
Did you like this article? Share it with your favourite social network.