An anchor is an HTML tag, which is the source or destination of a hyperlink text. It allows us to create links from one HTML document to other and also to different section of the same HTML document. Anchors pointing to different HTML documents use tag whereas the anchors pointing to a different section within the same HTML document use . This type of anchors are mostly used in long HTML pages with different sections.