A link can point to a specific place on a page. This is useful on long pages such as guides and documentation.
Step 1: give the target an id
<h2 id="returns">Returns</h2>
Step 2: link to it with #
Put # and the id in the href.
<p><a href="#returns">Jump to returns</a></p>
<h2 id="shipping">Shipping</h2>
<p>We ship within two working days. <br><br><br><br><br><br><br><br><br><br></p>
<h2 id="returns">Returns</h2>
<p>You can return a book within 14 days.</p>
Link to a section on another page
Add the fragment after the page address.
<a href="policies.html#returns">Read our returns policy</a>
A back to top link
Link to # or to the id of the top of your page.
<a href="#top">Back to top</a>
Make a table of contents
<nav aria-label="On this page">
<ul>
<li><a href="#a">Section A</a></li>
<li><a href="#b">Section B</a></li>
</ul>
</nav>
<h2 id="a">Section A</h2>
<p>Content for A.</p>
<h2 id="b">Section B</h2>
<p>Content for B.</p>