web design company

Add HTML : How to add "Back To Top" hyperlink

Sometimes your web page may end up very long and you may wish to inset a "Back To Top" hyperlink at the bottom of your web page so that the user can easily click on the link and go back to the top of the web page. Users do not have to scroll up and down so much.

The way to do this is to create an anchor and then link to it.

1. First, create an anchor at the top of the page or where you want the user to go to after clicking the " Back To Top " hyperlink:

HTML Anchor Tag :

<A NAME="top">

Anchor names can be whatever you want them to be, but they need to follow the same rules as file name conventions.

In order for this to work, you must name the anchor and create a link to it.

In addition, your web page must be sufficiently long enough so that when you click on the "Back To Top" hyperlink, you will see it jump to the top.

2. Now, create a link to the anchor (You usually place this link at the bottom of your web page):

HTML Anchor Tag :

<A HREF="#top">Back To Top</A>

Output :

Back To Top

Back to Add More HTML
Since 2000 eOneNet.com. All Rights Reserved.