You are here: Reference > HTML > tags > area

area element

Browser support:
Defines a hyperlink region within an image map.
The area element specifies a region and a link within an image object. It is a perfect choice if you want to assign multiple links to multiple regions within an image, or one link to a portion of an image.
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
JavaScript page for this element: area.

Possible members:

Attributes
Events
Styles
Pseudos
accessKey
Sets an access key to an element.
alt
Sets an alternate text that is displayed when the file associated with the element cannot be displayed.
class
Sets the style class or classes that belong to the element.
contentEditable
3
Sets whether the contents of the object are editable.
coords
Sets the position of a shape. You can select the type of shape with the shape attribute.
dir
Sets the text direction as related to the lang attribute.
DISABLED
Sets the state of an object for user interaction.
draggable
3.55
Sets whether an element is draggable.
HIDEFOCUS
Specifies whether a dotted rectangle (focus rectangle) is drawn around an object while it has focus.
href
Specifies the location of the destination.
id
Sets a unique identifier for the object.
lang
Specifies the language of the element.
language
Sets the scripting language for the current element. Use it only for the script element.
name
Sets the name of an element.
NOHREF
Sets whether an area is a link.
shape
Sets the shape type of the selectable region for a hypertext or an area.
style
Sets an inline style associated with an element.
tabIndex
Specifies the tabbing order for keyboard navigation using the TAB key.
target
Specifies the target window or frame where the document is to be opened.
title
Specifies a tooltip for an element.
unSelectable
Sets whether the selection process can start in an element's content.
xml:lang
Sets the language code of the XML document.

Example HTML code 1:

This example illustrates the use of the area element:
<img src="area.gif" width="504px" height="126px" border="0px" alt="Solar System" usemap="#SampleMap" />
<map name="SampleMap">
    <area shape="rect" coords="1,-1,83,125" alt="rectangle" href="#" />
    <area shape="circle" coords="234,57,30" alt="circle" href="#" />
    <area shape="poly" coords="363,37,380,40,399,35,420,47,426,63,423,78,430,94,409,90,395,92,379,84,371,67,370,57" alt="polygon" href="#" />
</map>
Did you find this example helpful? yes no

Related pages:

External links:

User Contributed Comments

Post Content

Post Content