Home Home -> HTML Reference -> Tag Reference - area

Tag Reference - area

Description

This element is used inside the <map> element to define a region of a client-side image-map which acts as a hyperlink.

Attributes


accesskey
Defines a keyboard shortcut for selecting this item (or "clicking" a button)

alt
Alternative text when the tag is not supported.

class
The CSS style class to be applied to this tag. This could be used, for example, to create a style for "important" items, using a line in the style sheet as below:

.important { font-color: red }

This can be applied to the tag as follows:

<b class="important">This is important.</b>

coords
When used with objects, this is a comma-separated list of coordinates which define the location of the object on the page.

dir
Overrides the direction of the text from the standard direction. "rtl" displays the text from right to left, "ltr" from left to right.

href
The URL of the file to link to.

id
A unique alphanumeric identifier used to identify this object/tag. This identifier can be used in scripting languages to refer to the tag or object.

lang
The language of the text enclosed by this tag, as defined in RFC 1766 (eg en-gb for British English).

language
In Microsoft's implementation, sets the language for the scripts defined in the tag's event handlers.

nohref
Indicates that no hyperlink is associated with this area. This or "href" must be present.

shape
Sets the shape for the hyperlink when an object (eg an image) is used as the link. A value of "circle" requires "coords" to be x,y,radius (x,y being the centre of the circle). For "rect", "coords" should be left,top,width,height. A value of "polygon" requires "coords" to be successive pairs of points of the form x1, y1, x2, y2 etc which define the vertices of the polygon. A value of "default" indicates that the entire area (eg entire image) should be used.

style
Inline style-sheet information.

tabindex
This identifies the object's position in the tab order of the page when the TAB key is pressed.

target
Specifies the target window or frame for the hyperlink - the linked document is displayed in the name window. "_blank" creates a new window, "_parent" loads the file into the parent frame, "_top" loads the file into the topmost frame (ie the main browser window). "_self" is usually the default (unless overriden by <base target=""> and loads the linked file into the current frame. When set in the <base> tag, the "target" attribute specifies the default target frame or window for all links on the page.

title
Advisory text for this tag - this could define an abbreviation or acronym, explain where a link goes or provide some other useful description.