HTML <XMP>


deprecatedThis 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="http://www.google.com">google.com</A>
</XMP>

gives us

Here's how to do an anchor:

<A TARGET="_top" HREF="http://www.google.com">google.com</A>

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 &lt; for < and &gt; for >. The example above can be expressed like this:

Here's how to do an anchor:
<PRE>
&#60;A HREF="http://www.google.com" &#62;Google &#60;/A&#62;
</PRE>

which gives us

Here's how to do an anchor:

<A href="http://www.google.com">Google</A>

<listING> >