Anchor tags are used to create links, which are in turn used to jump from one spot to another within web documents. Links can be set so that they jump between documents in the same folder, documents on the same server, or documents on different continents.
Anchors come in the form of a pair of tags surrounding the text or image that will serve as a link. The opening and closing tags are slightly different. Anchor tags generally look like one of the three following examples.
Example (B) shows how to make a link that will reference a predefined "named" anchor in a document. If the named anchor point is in the same document as (B)'s anchor tags, all that needs to be given is the #anchorName. If, however, the targeted spot is in a different document, the syntax becomes <A HREF="URL#anchorName"> the link </A>
Example (C) shows how to create a simple link to another document. If the target document is in the same folder as the document containing the link, all that needs to be given in the URL is the target document's name. If the target document is not in the same folder as the document containing the link, a full URL needs to be given. A full URL has the following structure where resource type might be http, host.domain.port could be cesdis.gsfc.nasa.gov:80, and pathname might be hpccm/visitor/index.html. The port can often be left off.
Here is an example of a link to a spot within this document. Select 'View Source' from the View pulldown menu to see the exact syntax.