Language reference : Base architecture : Domain elements : Utilities elements : imagemap
The imagemap element supports the basic functionality of the HTML image map markup. Imagemap allows you to designate a linkable area or region over an image, allowing a link in that region to display another topic.
An HTML client-side image map binds an image to the navigation structure (the "map") by means of an ID association from the map to the image. In contrast, the DITA version of imagemap markup simply includes the target image as the first required element in the markup, followed by a sequence of area elements that represent the links associated with the contained image.
An imagemap structure can be output either to a standard HTML image map or to alternative forms of navigation (such as table-based image maps). When output as PDF, the minimal form would be to represent at least the image; advanced PDF output processors should be able to provide equivalent region-oriented hyperlinks.
The xref content contains the intended alternative text or hover text for the map area.
Note: These models represent only the default document types distributed by OASIS. Actual content models will differ with each new document type.
Content model
topic, map, concept, ditabase, glossary, glossentry, glossgroup, reference, task, bookmap, classifyMap, subjectScheme, machineryTask, learningAssessment, learningBookmap, learningContent, learningMap, learningOverview, learningPlan, learningSummary
( (image) then (area) (one or more) )
Contained by
Content model
topic (base)
map (base), classifyMap, subjectScheme, learningBookmap, learningMap
topic (technical content)
map (technical content), bookmap
glossary, glossentry, glossgroup
task (strict), task (general)
learningAssessment, learningOverview, learningSummary
+ topic/fig ut-d/imagemap
Example 154. Example
A simple imagemap looks like this (note that the rendering will depend on how this markup is supported for particular output formats):
<image href="imagemapworld.jpg">
<alt>Map of the world showing 5 areas</alt>
<xref href="d1-s1.dita">Section 1</xref>
<xref href="d1-s2.dita"></xref>
<xref href="#inline" type="topic"></xref>
<xref format="html" href="test.html"></xref>
<xref format="pdf" href="test.pdf"></xref>
The areas defined correspond to this graphic image with the areas visible:
The values for use in the shape and coords elements must follow the guidelines defined for image maps in HTML 4.1, Client-side image maps: the MAP and AREA elements
Data Type
Default Value
The specialized title attribute allows architects of specialized types to define a fixed or default title for a specialized element. Not intended for direct use by authors.
display-atts attribute group (scale, frame, expanse)
A set of related attributes, described in display-atts attribute group
univ-atts attribute group (includes select-atts, id-atts, and localization-atts groups)
A set of related attributes, described in univ-atts attribute group
global-atts attribute group (xtrf, xtrc)
A set of related attributes, described in global-atts attribute group
class, outputclass
Common attributes described in Other common DITA attributes