<XMP>
This tag is officially deprecated. That means that this tag is being phased out, and it is strongly suggested that you not use it.
<XMP>
indicates a block of text where all HTML tags are ignored. The only tag that is not ignored is
</XMP>
.
Here's how to do an anchor:
<XMP>
<A HREF="https://www.idocs.com">Cool Dude</A>
</XMP>
gives us
Here's how to do an anchor:
Cool Dude
Notice in the code that we did not need to use character codes for
>
and <
.
For this reason <XMP>
used to be popular for creating HTML pages that were about HTML. Unfortunately, <XMP>
breaks some important rules of SGML (the parent language of HTML) and so is unpopular among browser creators. If you need to write about HTML, use <PRE ...>
and <CODE>
and use <
for < and >
for >. The example above can be expressed like this:
Here's how to do an anchor:
<PRE>
<A HREF="https://www.idocs.com">Cool Dude</A>
</PRE>
which gives us
Here's how to do an anchor:
<A href="https://www.htmlcodetutorial.com">Cool Dude</A>