With HTML, an anchor or hyperlink anchor is an area in hypertext containing the source or destination to a different address or other information. In HTML, an anchor begins with and ends with , as shown in the breakdown of an HTML tag.

The example code below is an anchor that links to the Computer Hope web page, with the anchor being Computer Hope.

  • Working example of a hyperlink anchor.
  • Named anchor.
  • Working example of a named anchor.
  • Related information.

Computer Hope

When inserted in a web page, the code would generate the example below. In the example, “Computer Hope” is the anchor text in the anchor.

Computer Hope

Named anchor

Alternatively called a bookmark, in-page link, and jump link, a named anchor is an anchor that links to a location on a page. For example, “#top” is a named anchor that allows the reader to return to the top of the page. For example, a visitor at the bottom of a page could click a link to scroll to the top.

Named anchors are comprised of the HTML tag with the href attribute pointing to another tag with the name or id attribute. For example, in our #top example, the anchor tag looks like the code shown below.

Back to top

  • How to create links to sections on the same page in HTML.

Working example of a named anchor

Back to top

, HREF, Hyperlink, Hypertext, Internet terms, Software terms, Web design terms

  • How to create an HTML link on a web page.
  • How to create a link that goes to the top of a web page.
  • HTML and web design help and information.