Demonstrating the #NAME attribute of the anchor tag

You'll notice that the address of this page is tutorial_3a.html - the page you came from is tutorial_3.html. Here is the HTML, as coded in tutorial_3.html, for the link that sent you here:

<A HREF="tutorial_3a.html#target">

Notice that the URL which follows HREF= is the same as that which appears in the last part of the address in the LOCATION window at the top of the screen. Because both this page and tutorial_3.html reside in the same directory, I didn't need to code the http://www.oocities.org/Heartland/Meadows/7432 part - which is the name of the directory.

You made it! And all because of the second usage of the "#name" attribute - to get to a named point in a different document in the same directory. But this is not the top of the page...! I've placed the target tag in the middle of the page to demonstrate that the target tag may appear anywhere within the document being linked to.


This page hosted by
Get your OWN FREE HOME PAGE

HomeBack to Navpooh's Home Port

HTML indexBack to HTML tutorial index

Last updated Thursday, October 16, 1997