XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / map

(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

   

map

HTML 4.01 | HTML 5

<map> ... </map>

Defines a client-side image map. It contains a series of area elements, which define clickable regions within the image map.

Notes

The map element must be named in HTML documents using the attribute name. In XHTML documents, this is done using the attribute id. Both attributes are often used together to maintain compatibility with both formats.

Start/end tag

Required/required

Attributes

Core, internationalization, events, global HTML 5 attributes

  • id="Text"

    Required in XHTML. Gives the image map a unique name so that a link, script or stylesheet can access it.

  • name="Text"

    Required in HTML 4.01 and 5; deprecated only in XHTML 1.0. Use instead id. Gives the image map a name referenced by the corresponding img element.

Example

<map name="weltraum" id="weltraum">
  <area shape="rect" coords="203,23,285,106" href="http://www.nasa.gov" alt="">
  <area shape="circle" coords="372,64,40" href="meine-seite.html" alt="">
</map>

 

> back to the alphabetical list of elements

   

 

 

 

back to top