Category: Hypertext Links | Previous: A | Next: A

<A>

Description:

An anchor or a link. As an anchor it serves as a location on the page to which a link can connect. As a link it make the enclosed text a connection to another page.

Syntax:

<A HREF="http://www.rpi.edu/~hopews" TARGET="_self">
OR
<A NAME="Chris">

Attributes:

Attribute Value Description
HREF "URL" Sets the URL to which the link points.
NAME "Name" Sets the name of the anchor.
TARGET "Name"
"_top"
"_parent"
"_self"
"_blank"
Sets the target of the link to the window or frame specified by "Name"

Notes:

The TARGET attribute is a Netscape extension for use with frames. The value refers to the target window into which the document pointed to by HREF is loaded. "_top" loads it into the uppermost frameset. "_parent" loads it into the frameset immediately above the one containing the link. "_self" loads it into the frame containing the link, and "_blank" loads it into a new unnamed window. For more on frames see the lessons in Advanced HTML Components.

Example:

<A HREF="http://www.rpi.edu/~hopews" TARGET="_self">Singularity</A>
<BR>OR<BR>
<A HREF="#subheading">Subheading</A>
...<BR>
...<BR>
...<BR>
<A NAME="subheading">


Singularity
OR
Subheading
...
...
...

Index: HTML Reference | Back: !DOCTYPE | Next: ADDRESS