Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML map definition

Browser supportInfo
IEFFOpSafVersionDepr.
FullFullFullFullHTML 3.2False

Type: block-level element

Syntax

<map> ... </map>

Description

The map element is used to define a client-side image map. An image map is used to assign different actions to different regions of an image or an object.

To impelent an image map, first you need to define an object or an image, then link it to the map by using the name of the map. Inside the map element the different areas are defined using the area element.

Attributes

Attribute Description
name = text Defines the name of the image map.

Common attributes.

Example

[Try this example yourself]
<object data="images/glubase2.gif" type="image/gif" usemap="#map1">
  <map name="map1">
    <area shape ="rect" coords ="40,40,100,100" href ="link.htm" target ="_blank" alt="name1" />
    <area shape ="circle" coords ="100,100,10" href ="link2.htm" target ="_blank" alt="name2" />
  </map>
</object>

Output

name1 name2
  • Comments

No comments added.