You create an anchor in nearly the same way that you create a link: by using the <a> tag. If you wondered why the link tag uses an
<a> rather than an <1>, now you know: a actually stands for anchor.
When you specify links by using <a>, the link has two parts: the href attribute in the opening <a> tag and the text between the opening and closing tags that serve as a hot spot for the link.
You create anchors in much the same way, but rather than using the href attribute in the <a> tag, you use the name attribute. The name attribute takes a keyword (or words) that name the anchor. Figure 5.11 shows the parts of the <a> tag. When used to indicate an anchor.
FIGURE 5.11 the <a> tag and anchors.
Including text between the anchor tags is optional. The actual anchor is placed at the location of the opening anchor tag, so you can just as easily write it as
<a name=”my anchor”></a>
