You have probably noticed that on many of my pages, that if you select certain links, such as to my CGI-BIN page, that you wind up looking right at what it was I was telling you about. The secret to this are the
the <a NAME=”anchor_name”></a> tags.
Before I show you the exact code to do this, let’s just take a fast look at a full URL: (port ommitted since rarely used)
This URL tells the browser the following:
This is a HTML document request
The document can be found at the www.domain.com domain
It is located in the files directory under its root directory
It’s name is url.html
Position the top of the screen at a location called TOP
How to do it:
Here is a menu presenting three navigation choices on this page. Go ahead and give it a try. This section is called the “How To” so you can find your way back again.
Go to top of page
Go to middle of page
Go to bottom of page
This is the source code for the menu above:
<a HREF=”#TOP”>Go to top of page</a><br />
<a HREF=”#MIDDLE”>Go to middle of page</a><br />
<a HREF=”#BOTTOM”>Go to bottom of page</a><br />
I also had to place the following tags in my document.
The best way to see them is to view the actual document source with your browser. You will see some rather large gaps created using the <pre> tags.
Final Note: To address a specific point on any page- just place the <a NAME=> tag in the target document.
Create a link in the calling menu that corresponds to the anchor tag your created.