Page anchors are links on a page that allow visitors to jump to a specified location on that page or on another page.
Page anchors can be useful in a variety of situations, such as when there is a lot of information on one page and visitors need to be able to jump to the information they want without having to filter through the material they don’t want. “Jump to Bottom” and “Jump to Top” links on a page could also be used.
1: Place an anchor at the location where you want to jump.
Find the location where you want visitors to jump. Add the following line of code to that location. :
Change the name “anchor” to anything you want.
2: Add an HTML anchor link
Somewhere on your page make a link. When you set the link location use the name you gave your anchor in step 1, but add a “#” in front of the name. For example:
Here “#anchor” is the link to your anchor, and “Your Text” is the text that the link will display on the webpage.
Linking to anchors on a different page
You can also link to an anchor on a different page. To do this just add the anchor to the end of the “href” link path.
Anchors are a good method to make your website more user-friendly and allow your visitors to quickly discover the information they need.