<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.idocs.com">Cool Dude</A>
</XMP>

gives us

Here's how to do an anchor:

<A href="index.html">Cool Dude</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.idocs.com"&#62;Cool Dude&#60;/A&#62;
</PRE>

which gives us

Here's how to do an anchor:

<A href="http://www.htmlcodetutorial.com">Cool Dude</A>





About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.