Creating website page anchors

Website Tips

Your website, most probably, consists of multiple pages. Page anchors allow visitors to jump to a specific place in the current page or to jump to a specific place on another page. The basic method is the same. It is just that for an anchor on another page, you have to specify the page name. It is OK if in both cases, you specify the web page with the anchors.

The example below is taken directly from my implementation of anchors:

On the horizontal menu above, in Promote Website, when you click on Submit Website, you would find the Master Directory List is divided into multiple files. So in order to jump to a specific location such as A, I use the anchor as

<a href="">A</a>.

The #A is the anchor with which you jump to A in the specified page. Now, obviously, you must have a place designated as A in file to jump to. That is where you place the following instruction:

<a name="">A</a>.

Notice that only A follows the file name rather than #A. Only the anchor must have the # before the letter(s). So before I list directories that start with the letter A, I use the above instruction.

I have divided the list into 26 letters plus directories that start with the numerals. I just repeat the process for all external files in the format given below:

<a href="">0-9</a>&nbsp;
<a href="">A</a>&nbsp;
<a href="">B</a>&nbsp;

and so on...

Now, notice that when you click on Article Directory List, I have all the alphabets in the same file. However, I still treat the anchors as if they were scattered in different files. For example, in this case, I use the same format specifying the explicit file name.

<a href="">A</a>.

I thought it was a better practice and to be consistent with the first example. The jump to destination is similar except that I don't give out a specific file name because when you click on A, for example, you basically tell it to go to that page to the specific place.

<a name="A">A</a>.

If instead you have

<a name="">A</a>,

it will go to the beginning of the page rather than the specific place on that page and that is what I have implemented in dealing with pages in Master List Directory. So it lands at the beginning of the page where I want it. That means I did not have to use page anchors for this particular application.

You can position the anchors and the respective directories using the HTML <div> tag.
A Website Tutorial
Learn to create your first website
Powered By: Voda Utilities

Privacy Policy

About Us
Contact Us
Link To Us

Money Making Discussions

World News
Content Resources

Our Partners
Rent-A-Coder for less
Boutique Web Designers
Best Web Tools
SEO Book
Money Making Discussions

More Partners
Website Magazine
Job Opportunities
Enjoy WorldWide Brands
Send Flowers
Support this Website

Our Friends
Debt Consolidation