Sunday, August 12, 2012

HTML

Image maps

Animage map allows geometric areas on an image to be associated withhyperlinks(page
436).
An image, in the form of animgelement or anobjectelement representing an image, may be
associated with an image map (in the form of amapelement) by specifying ausemapattribute on

theimgorobjectelement. Theusemapattribute, if specified, must be avalid hash-name
reference(page 54)to amapelement.
If an imgelement or anobjectelement representing an image has ausemapattribute specified,
user agents must process it as follows:
1. First,rules for parsing a hash-name reference(page 54)to amapelement must be
followed. This will return either an element (the map) or null.
2. If that returned null, then abort these steps. The image is not associated with an image
map after all.
3. Otherwise, the user agent must collect all theareaelements that are descendants of the
map. Let those be the areas.
Having obtained the list ofareaelements that form the image map (theareas), interactive user
agents must process the list in one of two ways.
If the user agent intends to show the text that the imgelement represents, then it must use the
following steps

No comments:

Post a Comment