aspxtreme

AREA Element | AREA Object

HTML Elements/DHTML Objects


Defines a clickable area, or hotspot, within a client-side image MAP.

HTML Syntax

Remarks

A hotspot is an invisible region on a graphic that is assigned a hyperlink. When a site visitor clicks the region, the destination of the hyperlink opens in the browser. A hotspot can take the shape of a rectangle, circle, or polygon.

AREA describes an individual hotspot region in the image map. The element defines the shape, coordinates, and associated URL of one hyperlink region. AREA can only be used inside a MAP element. Any number of AREA elements may be contained within the same MAP element.

The coords attribute is required. The format of the coords value is dependent upon the value of the shape attribute.

Also, either the href or the nohref attribute must be supplied.

Members



Styles


Example

The following example provides the full code for an image map of the solar system. Clicking on the sun or any planet opens a link to an individual image.

Sample Code


See Also

IMG, MAP



Books and more ...

Contents
HTML Elements / DOM Objects
HTML Element Attributes
CSS Attributes
DOM Object Properties
DOM-compliant Events Reference
DOM Methods Reference
DOM Collections Reference
 


Suggested Reading



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme