Fandom

Map

648pages on
this wiki
Add New Page
Comments0 Share

The HTML <map></map> element was first introduced in the Client Side Image Map proposal (an HTML Working Draft from Spry). It was very quickly adopted in browsers and then in the HTML 3.2 recommendation. This element contains a grouping of shape-link identification pairs (the <area /> element) used to identify image map linking destinations with geometric regions on an image.

AttributesEdit

Attribute Value Description
name character data This attribute behaves the same as the <a> element's name attribute in defining a destination within a document. It specifies the map location within a file for reference by the <img /> usemap attribute. They are referenced in the <img /> usemap attribute as either #mapname (map is in the current file) or file/name#mapname (map location is in an external file) as appropriate.
Global Attributes

See Global HTML Attributes.


HTML example:

<map name="clientsidemap">
   <area shape="rect" coords="0,0,100,100" href="http://www.foo.com/test.htm" />
   <area shape="circle" coords="95,105,5" href="http://www.foo.com/test2.htm" />
   <area shape="poly" coords="5,100,10,110,0,110" nohref />
</map>

<a href="cgi-bin/serverside.map"> <img src="image.gif" ismap usemap="#clientsidemap" /> </a> 

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.