The AREA element is used to define the shape of a hyperlink "hot spot" in a client-side image map.
<AREA
ALT=alternate Text
CLASS=Style Sheet class name
COORDS=coordinates
HREF=url
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
NOHREF
SHAPE=CIRC | CIRCLE | POLY | POLYGON | RECT | RECTANGLE
STYLE=styling
TABINDEX=n pixels
TARGET=window_name | _blank | _parent | _self | _top
TITLE=text
event = script
>
Parameter |
Description |
ALT |
This optional attribute specifies any text that should be displayed if the browser understands the APPLET element. |
CLASS |
Class of the tag being defined. This is used to associate a subclassed style sheet with the tag. |
COORDS |
Coordinates that define the hot spot's shape. |
HREF |
Destination URL or anchor point. The text between the anchor elements becomes a hypertext link. If readers select the link, they would move to the document or location specified by the value of the attribute. |
ID |
SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underscore character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. |
LANG |
Specifies which language to use in ISO standard language abbreviation form. |
LANGUAGE |
Specifies the language the current script is written in and invokes the
proper scripting engine. The default value is JAVASCRIPT. |
NOHREF |
Indicates that clicks in this region should cause no action. |
SHAPE |
Specifies the type of shape used in the image map. The usually used value are: CIRC | CIRCLE | POLY | POLYGON | RECT | RECTANGLE |
STYLE |
Specifies an in-line style sheet for the tag. |
TABINDEX |
Sets the tab order position(pixels) for the object. |
TARGET |
Window or frame at which to target the contents. If no frame or window
exists that matches the specified target, a new window is opened for the
specified link. If no target is specified, the default is "_self"
for a link within the same site or "_top" if the site is external.
Special target values are: |
TITLE |
The TITLE attribute is for advisory information (unless used with a mailto: attribute). The Title attribute should provide the title of the document whose address is given by the HREF attribute. The contents of the title attribute will be displayed in a tooltip during the mouse moves on the link. Internet Explorer 4.0 (and above) is the only browser to implement this. |
event |
Can be one or more of these events: |
<AREA SHAPE="RECT" COORDS="0, 0, 58, 31" href="http://www.sothink.com/download/">
<AREA TARGET="main" href="sample.htm" SHAPE="CIRCLE"
COORDS="73, 15, 10">
<AREA SHAPE="RECT" COORDS="58, 0, 88, 31" NOHREF>
This is an empty element and does not require a closing tag.