Hypertext Anchors


An anchor is a piece of text or some other object (for example an image) which marks the beginning and/or the end of a hypertext link.

The <A> tag is used to mark that piece of text (or inline image), and to give its hypertextual relationship to other documents. The text between the opening and closing tags,

<A attributes> ...text... </A>

can be the start or destination (or both) of a link.

Attributes for the <A> tag

The following sections describe the attributes appropriate to the Anchor tags. These entries are commonly used and should be well understood.

  1. HREF (link to object)
  2. NAME (link from object)