Posted by mbstevens on 09/11/06 22:03
On Mon, 11 Sep 2006 21:23:45 +0000, Michael Jones wrote:
> I would like to display some HTML hyperlink code as pure text on a web
> page (ie I would like the user to be able to read the code).
>
> I have tried to wrap the code in <code> tags but this does not seem to
> work.
Use '<' for '<' and '>' for '>'.
That way, tags won't actually be interpreted as tags by the
visitor's browser. If you notice anything else in the code
not behaving in the way you expect, just use a character entity
or numeric entity instead of the character itself. If you google for
those two things you'll get more information.
--
mbstevens
http://www.mbstevens.com
[Back to original message]
|