previous | start | next


A

<A
CLASS=type
HREF=reference
ID=value
NAME=name
onClick=function
onMouseOver=function
REL=SAME|NEXT|PARENT|PREVIOUS
REV=value
STYLE=style
TARGET=window
TITLE=title>
</A>

Stands for anchor. The end-tag is required.

CLASS=type
Indicates the class to which the element belongs.
HREF=reference
Specifies either a destination address or a destination file. A destination address must be in URL format. A destination file must name a file and be in the format of the given file system. If no path or domain name is specified, the file is searched for in the same location as the current document.
ID=value
Specifies a unique value for the element over the document.
NAME=name
Specifies a named reference within an HTML document.
onClick=function
Activates a script when the onClick event occurs.
onMouseOver=function
Activates a script when the onMouseOver event occurs.
REL=SAME|NEXT|PARENT|PREVIOUS
Defines the relationship of a link. The default is SAME.
SAME The author of the linked document is the same as the current document.
NEXT The link is the next page in a sequence.
PARENT The current page is the parent of a destination document.
PREVIOUS The link is to the previous document.
REV=value
Specifies the reverse link.
STYLE=style
Specifies style information.
TARGET=window
Specifies to load the link into the targeted window. This attribute can be used with a frameset where a frame has been named in the FRAME element. The window can be one of these values:
window Specifies to load the link into the targeted window. The window must begin with an alphanumeric character to be valid, except for the following four target windows:
_blank Load the link into a new blank window. This window is not named.
_parent Load the link into the immediate parent of the document the link is in.
_self Load the link into the same window the link was clicked in.
_top Load the link into the full body of the window.
TITLE=title
Specifies the title that appears when the hyperlink is selected.

The properties of elements that can follow A are applied to the data characters or elements in the container. The anchor element is used to link text or other elements using the HREF= attribute. The anchor element is used to specify text or graphics as a named reference, to which hyperlinks can link, using the NAME= attribute. Anchors cannot be nested.

Example

<A HREF="http://www.microsoft.com"> This is a link to Microsoft.</A>

<A HREF="home.htm">This is a link to a file called home.htm in the same 
directory as this page.</A> 

<A TARGET="viewer" HREF="sample.htm">Click here to load the link into 
"viewer" window.</A>



previous | start | next

Questions: