The A Tag
HTML has the ability to create links to other documents from within the current
document. This is done using the <A> tag. The <A> tag is also known
as an "Anchor". The <A> tag has two attributes, NAME and HREF.
One is a source, and the other is a destination.
The <A> tag uses one of the following formats:
<A NAME="anchor name"></A>
<A HREF="#anchor name">text of link</A>
<A HREF="URL#anchor name">text of link</A>
How does the URL work?
- NAME is the name of the anchor. When no name and no # is given, the link takes you to the top of the page.
- HREF is the reference which defines the relationship and service between this document and the link.
- the text of link is any text you wish to include which will become HyperText.
- URL is the Uniform Resource Locator of the document you to go to when the link has been selected.