Share via


AREA HTML Element

The AREA element defines the shape, coordinates, and associated URL of one hyperlink region within a client-side image map. This element is not rendered and requires a closing tag.

Attributes

Attribute Value Description
CLASS   Associates the element with a CSS style.
Note   Supported only for devices running Windows Mobile 2003 software or later.
COORDS Special Specifies the coordinates for the hyperlink area within an image map. The format of the string depends on the SHAPE specified, as follows:
  • SHAPE= "circ" or "circle" COORDS= "x1,y1,r" — Where x1,y2 are the circle's center coordinates, and r is the circle's radius.
  • SHAPE= "poly" or "polygon" COORDS= "x1,y1,x2,y2...xn,yn" — Where each x,y pair contains the coordinates of one vertex for the polygon.
  • SHAPE= "rect" (default) or "rectangle" COORDS= "x1,y1,x2,y2" — Where x1,y1 are the upper-left corner coordinates and x2,y2 are the lower-right corner coordinates of the rectangle.
Note   Percentage values for SHAPE COORDS are not supported.

If two or more regions overlap, the region defined first in the map definition takes precedence over subsequent regions. AREA elements with NOHREF are placed before those with the HREF attribute.

HREF URL A string that specifies a destination URL or anchor point.
ID   Uniquely identifies the element within a document.
Note   Supported only for devices running Windows Mobile 2003 software or later.
NOHREF   Specifies no action for that region; used to exclude areas in an image map.
SHAPE Rect

Rectangle

Circ

Circle

Poly

Polygon

Specifies the shape of an image map region.
STYLE   Provides the definition of the CSS styles used for this element.
Note   Supported only for devices running Windows Mobile 2003 software or later.
TARGET _blank Causes Pocket Internet Explorer to navigate the topmost document to the HREF.
Note   Not supported for Windows Mobile-based Smartphones.
TARGET _parent Causes the immediate parent of the frame to navigate to the HREF.
Note   Not supported for Windows Mobile-based Smartphones.
TARGET _top Causes Pocket Internet Explorer to navigate the topmost document to the HREF.
Note   Not supported for Windows Mobile-based Smartphones.

Requirements

Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.