Most links take a user from one webpage to another. But what if you want to link within the same page?
For example, maybe you want the user to be able to click a link to get back to the top of the page, or jump from one section of a post to another.
This is called a jump link.
Like a regular link, there are 2 parts:
- The text that is linked.
- The landing spot (once the link is clicked).
For the text that is linked, use the following HTML:
<a href="#samplesection">Your link text</a>
For the landing spot, use the following HTML: