How to Create HTML Code for a Top of Page Button

If your Web page is especially long, or your users may want to regularly navigate back to the top, you may want to insert links on the page that send the user back to the top of the page. Inserting a link like this allows the user to simply click on "Top of Page" or "Go to Top" at the bottom of the page, then the page automatically goes back to the top.

Instructions

    • 1

      Log in to your Web server and open the HTML page in which you want to insert the "top of page" link.

    • 2

      Place the following tags around the top title of your page:

      <a name="tips">Top Title</a>

    • 3

      Replace "Top Title" with the text that displays at the top of your page.

    • 4

      Scroll to the bottom of the page and insert this code just before the closing </body> tag:

      <a href="#top title">Go to Top</a>

    • 5

      Replace "top title" with the text you used for the "name" attribute. Make sure that you add a pound sign to the "a href" attribute in for your bookmark.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured