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>
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>
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 that the visitor clicks to go to another page. But when the anchor tag contains the name attribute, it functions as the destination of a link, or a location that appears in the browser after the visitor clicks the link. |