Framify

Tag: <a>

<a> Syntax

Syntax Diagram for <a>
Opening Tag Content Closing
Tag
Open Parameter = Value Close
<a href = "url" > hyperlinked
text
and/or
graphics
</a>
name = "name"
target = "name"
_self
_parent
_top
_blank

<a> Description

The <a> defines an "anchor," that is, a place whose location is known and can be navigated to or from.
href
Specifies, along with the "url", the "hyperlinked reference" to which the user will go when clicking on the enclosing text or graphic. This is the "go to" form of the anchor tag. There are three different forms of the URL:

For more details, see the URL page.

name
Specifies a location that will appear at the top of the screen when an "href" form of the anchor is activated (by clicking). This is the "come from" version of the anchor tag.
target
Specifies the manner in which the next document is to be loaded. (This form applies only to the "href" form of the anchor tag, not the "name" form, and then only in a framed context; see <frameset>). The possible values are:

<a> Examples

This "absolute reference" markup: See <a href="http://www.apple.com" target=_top>Apple's website</a> for more information. . . .causes the following to be displayed (click on it to see that it works):
See Apple's website for more information.
This "relative reference" markup: See the <a href="body.html">body</a> tag for more information. . . .causes the following to be displayed (click on it to see that it works):
See the body tag for more information.
This markup goes to a location within a document: See the <a href="frameset.html#frame">frame</a> tag for more information. . . .causes the following to be displayed (click on it to see that it works):
See the frame tag for more information.

Last Modified: Thursday, 24-Dec-2009 14:40:44 MST