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 correspondingimgelement.
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>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de