<A
The <A Tag is used as an Anchor, and is followed by HREF, NAME, TARGET,
and a few other commands. The closing Tag is </A>, and the
commands are as follows.
HREF
This is used as Hypertext Reference, and links an HTML
document to another HTML document. This can be linked to a WWW address,
HTML file, or NAME.
Yahoo
<a href="http://www.yahoo.com">Yahoo</a>
D.J. Quad's Ultimate Tag Reference List
<a href="ref_list.html">D.J. Quad's Ultimate Tag Reference List</a>
D.J. Quad's Ultimate Tag Reference List - A
<a href="ref_list.html#A">D.J. Quad's Ultimate Tag Reference List - A</a>
| Other HREF commands include: |
| <A HREF="ftp://..."> |
- Makes a link to an ftp site. |
| <A HREF="gopher://...> |
- Makes a link to a gopher server. |
| <A HREF="mailto:..."> |
- Allows an E-Mail link. |
| <A HREF="news:..."> |
- Makes a link to a newsgroup. |
| <A HREF="newsrc:..."> |
- Makes a link to a specific newsrc file. |
| <A HREF="nntp://..."> |
- Can be used to specify a different news server. |
| <A HREF="telnet://..."> |
- Allows a telnet session. |
| <A HREF="wais://..."> |
- Connects to a specified WAIS index server. |
NAME
This is used for making the anchor the target of a link.
For example, In the example above:
D.J. Quad's Ultimate Tag Reference List - A
<a href="ref_list.html#A">D.J.Quad's Ultimate Tag Reference List - A</a>
This will go to the "A" listing on ref_list.html -
On ref_list.html, the "A" listing is:
<a name="A">A</a>
REL and REV
The REV attribute is the same as the REL command, but the link is in the
opposite direction. A link from A to B with
REL="X" expresses the same
relationship as a link from B to A with
REV="X". An anchor may have both REL and REV
commands.
|