A (Anchor) TAG and ATTRIBUTES

<A></A>

This element indicates the portion of the document that is a hyperlink (href) or the named target destination for a hyperlink (name).


ATTRIBUTES

CLASS = "class name(s)"
HREF = "URL"
NAME = "name of target location"
STYLE = "style information"
TARGET = "_blank | frame-name | _parent | _self | _top"

EVENTS

onblur
onclick
ondblclick
onfocus
onhelp
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup


CLASS  See Cascading Style Sheets (CSS) Information.

HREF  This is the single required attribute for anchors defining a hypertext source link. It indicates the link target, either a URL or a URL fragment, that is a name preceded by a hash mark (#), which specifies an internal target location within the current document. URLs are not restricted to Web (http)-based documents. URLs may use any protocol supported by the browser. For example, file, ftp, mailto work in most user agents.

NAME  This attribute is required in an anchor defining a target location within a page. A value for NAME should be an alphanumeric identifier unique to the document.

STYLE  See Cascading Style Sheets (CSS) information.

TARGET  This attribute specifies the target window for a hypertext source link referencing frames. The information linked to will be displayed in the named window. Frames must be named to be targeted. There are, however, special name values, including "_blank," which indicates a new window; "_parent," which indicates the parent frame set containing the source link; "_self," which indicates the frame containing the source link (default); and "_top," which indicates the full browser window.

Back to Top