How to create an anchor in HTML
Referring (anchor) links are internal website links which allow visitors to easily and quickly navigate through your website’s pages. By clicking an anchor link your visitor will be immediately directed to a particular part of your website. An anchor link always consists of two parts. A link which needs to be clicked (1) and a part which specifies the navigation direction (2). As can be seen in the below example the navigation direction is specified in the link by inserting the ID value in href part of the link, inclusive the hash sign:
1. <a href="#footer">Go to footer</a>
2. <div id="footer"></div>