XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / area
(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
HTML 4.01 | HTML 5 |
area
HTML: <area>; XHTML: <area/> or <area />
The element area is used within a map element, which defines a client-side image map. The element area defines the clickable region.
Start/end tag
This is an empty element. HTML forbids an end tag. In XHTML, the element must be closed with a trailing slash as shown above. Developers can insert a space before the slash for backward compatibility.
Attributes
Core, internationalization, events, focus, global HTML 5 attributes
alt="Text"Required. A short description of the image if the image file cannot be displayed.
coords="Werte"A comma-separated list of pixel coordinates defining an image map’s clickable region.
href="URI"The location of the document or resource reached by clicking the defined region.
hreflang="Sprachcode"HTML 5 only. Specifies the target document’s language.
media="all|aural|braille|handheld|print|projection|screen|tty|tv"HTML 5 only. Describes the media type, for example
screen,handheld,speech,printetc., for which the target document was created. The default isall.nohref="nohref"Not available in HTML 5. Defines an image map region where clicking has no effect.
ping="URLs"HTML 5 only. A list of URLs to contact when the link is clicked. Can help collect user statistics.
rel="Beziehungen"HTML 5 only. Defines one or more relationships between the current and target documents using a space-separated list. Common relationships are
stylesheet,next,prev,copyright,indexandglossary(for a complete list, see the entry for theaelement.)shape="rect|circle|poly|default"Defines the shape of the clickable region.
target="Text"The name of the window or frame in which to display the target document.
type="MIME-Typ"Specifies the linked content’s media or content type (MIME type), for example
text/html.
Example (HTML)
For another example, see the map element.
<area shape="rect" coords="203,23,285,106" href="http://www.nasa.gov" alt="">Example (XHTML)
<area shape="rect" coords="203,23,285,106" href="http://www.nasa.gov" alt="" />
|
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