PDF download Download Article PDF download Download Article

This article will show you how to make a back to the top link on a website. These can be useful to visitors reading long articles or browsing large pages. Your visitors shouldn't have to scroll all the way to the top.

  1. This is the start of the body code and thus is, by definition, the very top of the page.

    <a name="top"></a>
    Advertisement
  2. Ideally, near the end of each page or section.

    <a href="#top">Back to Top</a>
  3. Advertisement

Community Q&A

Search
Add New Question
  • Question
    I find this difficult to understand. For example, "open up your HTML file." Where will it be?
    Adam Leech
    Community Answer
    It really depends. Your HTML files are in your server's c-panel, they're also in your code editor on your website.
  • Question
    How do I change the color of my text?
    Community Answer
    Add this CSS to your Markup: a{ font-family: Times New Roman; color: Red; }
  • Question
    How can I style this link in CSS?
    Kabulput
    Community Answer
    <a href = "#" style = "color: red"> Link Text Here</a>. Here I used inline CSS to change the link's text color from the default to red.
Ask a Question
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 143,926 times.

      Is this article up to date?

      Advertisement