Section 22
LINKS TO A SPOT ON ANOTHER WEB PAGE (marked with <A NAME=...>)
     As I mentioned (in my tutorial) you can create links to specific spots
within a web page that are marked using the <A NAME="text"></A> tags.  I
did not mention that the </A> may be optional when using <A NAME="text">,
but I strongly suggest using it anyway.  Also, I did not show an example of
how to create a Link to such a marked point in another HTML (or web page)
file.  Here is an example:
<A HREF="filename.ext#text">The text for the link</A>
     Where the 'filename.ext' part is the name of the HTML file and the
'text' part is the name you used as that specific point on that web page.
Be sure to include the '#' symbol as shown above.  A better example might
be, if you created an Anchor in your "index.html" file using
<A NAME="Top"></A> then you could use the following Link on a different
web page to jump to it:
<A HREF="index.html#Top">Back to the top of my main page</A>
     Be forewarned that this does not always seem to work correctly (and
is why I did not mention it in my original HTML Tutorial).
     One source indicated you could use <A HREF="Top#.index.html">, but
it has never worked this way for me.  The example I've shown above appears
to be the way most other sources recommend doing it, so I suggest doing it
that way instead (as it at least works most of the time that way).
[Previous Section] [Table of Contents] [Addendum] [Milt's Micro Digest Home Page] [Next Section]
The names Microsoft, Internet Explorer, Netscape, and others used in this document
are Trademarks, or Registered Trademarks of the companies represented.
E-mail questions, comments, or suggestions to: miltst@hotmail.com
© 1999 miltst@hotmail.com

Counter
(This page was last modified on: Monday, February 08, 1999)
1