Help Center

Local Navigation

HTML element: <area>

Availability

Partial support as of BlackBerry® Device Software version 3.7.

Full support as of BlackBerry® Device Software version 4.6.

The <area> element defines an area of an image map. The <area> element is always a child of the <map> element.

Differences between HTML, XHTML, and XHTML-MP

In HTML, the <area> element is not closed. To conform to XHTML, you must properly close the <area> element.

XHTML does not support the <area> element.

Attributes

Attribute

Value(s)

Description

Supported in

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 following common attributes:

  • class
  • dir
  • id
  • lang
  • style
  • title

4.6 or later

Event attributes

The <area> element supports the following events:

  • onblur
  • onclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup

4.6 or later

Index


Was this information helpful? Send us your comments.