Question

How to link to an element or an anchor within an html page?


Annonce
Ad

Answer

First, create an anchor for the link within the page:
<span id="name-of-the-anchor">Text of the anchor</span>
then, link to the anchor:
<!-- Internal link -->
<a href="#name-of-the-anchor">Link text</a>
<!-- External link -->
<a href="http://www.example.com/page.html#name-of-the-anchor">Link to the anchor</a>


[source]
# ID Query