Download ArticleDownload 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. How.com.vn English: Step 1 Open up your HTML file with your preferred text editor such as Notepad or TextEdit.
  2. How.com.vn English: Step 2 Add a HTML anchor just after the ending of the head tag.
    This is the start of the body code and thus is, by definition, the very top of the page.

    <a name="top"></a>
    Advertisement
  3. How.com.vn English: Step 3 Place the following code where ever you want the link to appear.
    Ideally, near the end of each page or section.

    <a href="#top">Back to Top</a>
  4. 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?
    How.com.vn English: Adam Leech
    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?
    How.com.vn English: Community Answer
    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?
    How.com.vn English: Kabulput
    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
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • You can replace "Back to Top" text, with whatever you would like it to say.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 143,465 times.
      How helpful is this?
      Co-authors: 8
      Updated: July 4, 2023
      Views: 143,465
      Thanks to all authors for creating a page that has been read 143,465 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement