HTML element: <area>
Availability
|
BlackBerry®
Device Software 3.7 or later
|
The <area> element defines an area of an image map. The <area> element is always a child of the <map> element.
Attributes
Attribute
|
Value(s)
|
Description
|
Availability
|
alt
|
text
|
Required. This attribute specifies alternate text for the area.
|
4.6 or later
|
coords
|
coordinates
|
This attribute specifies the coordinates of key points of a shape in an image map. The number and order of the values depend on the value of the shape attribute:
- rect: defines the top left and bottom right corners in the following format:
left, top, right, bottom
- circle: defines the circle center and radius length in the following format: center-x, center-y, radius
- poly: defines each point in the following format: x1, y1, x2, y2, x3, x3, ..., xN, yN
|
3.7 or later
|
href
|
URI
|
This attribute specifies the target document for the area.
|
3.7 or later
|
nohref
|
true
false
|
This attribute specifies that the area is inactive and does not link to another resource.
|
4.6 or later
|
shape
|
default
rect
circle
poly
|
This attribute specifies the shape of a region in an image map.
|
3.7 or later
|
target
|
frame_target
|
This attribute specifies where the target document will be opened. The value can be the id attribute of the target frame, or can have one of the following special values:
- _blank: Default. The document opens in a new window.
- _self: The document opens in the current frame.
- _parent: The document opens in the parent frameset.
- _top: The document opens in the full window.
|
4.6 or later
|
Common attributes
The <area> element supports the class, dir, id, lang, style, and title attributes.
For more information, see Common attributes.
Event attributes
The <area> element supports the onblur, onclick, onfocus, onkeydown,
onkeypress, onkeyup,
onmousedown,
onmousemove,
onmouseout, onmouseover, and onmouseup events.
For more information, see HTML event attributes.
Index
Was this information helpful? Send us your comments.