Chapter 66. Using Named Anchors

The anchor tag is unusual in that it has two different functions in HTML. On one hand, you can use the anchor tag to link to another page:

<a href="anotherpage.htm">Go to another page</a>

GEEKSPEAK

A named anchor is a location on a Web page to which you can link.

On the other hand, you can use the anchor tag to set a location or named anchor to which to link:

<a name="linkhere"></a>

GEEKSPEAK

The source of a link is the element that the visitor clicks to go to another page. The destination of the link is the page that loads in the browser window.

The way the anchor tag functions depends on its attributes. When the anchor tag contains the href attribute, it functions as the source of a link, or the element ...

Get Web Design Garage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.