coords

The coords element specifies the coordinates of the linkable region in an imagemap area.

The element defines the starting point and size of that area. It uses the following data for the appropriate shapes:
Shape
Data format
rect
left-x, top-y, right-x, bottom-y
circle
center-x, center-y, radius
poly
x1, y1, x2, y2, ..., xN, yN. The first x and y coordinate pair and the last should be the same to close the polygon.

Pixels are recommended; they appear to work with all browsers.

Note: The behavior of image maps will depend on the browser on which they are rendered.

This element contains text data representing HTML coordinate data for image maps. The syntax of the coordinate data depends on the shape described by the coordinates.

Example

<area>
 <shape>rect</shape>
 <coords>54,1,117,60</coords>
 <xref href="d1-s2.dita"></xref>
</area>

Contains

Doctype Content model
ditabase, topic, task, reference, concept, glossary ( text data or keyword or option or parmname or apiname or cmdname or msgnum or varname or wintitle or term or data or data-about or foreign or unknown) (any number)

Contained by

Doctype Parents
ditabase, topic, task, concept, reference, glossary area

Inheritance:

+ topic/ph ut-d/coords

Attributes

Name Description Data Type Default Value Required?
translate Indicates whether the content of the element should be translated or not. Setting to "yes" will override the default. The DITA architectural specification contains a list of each OASIS DITA element and its common processing default for the translate value; because this element uses an actual default, it will always be treated as translate="no" unless overridden as described. yes | no | -dita-use-conref-target "no" No
xml:lang Specifies the language of the element content. When no xml:lang value is supplied, the default value of English is assumed. For example, if there is a note element with the attribute xml:lang set to the value "es," then the label on the note, which normally appears as "Note" will now appear in Spanish as "Nota." The allowed xml:lang values are based on RFC 4646 Tags for Identifying Languages (see W3C: Language tags in HTML and XML). NMTOKEN #IMPLIED No
dir Specifies the directionality of text: left-to-right (ltr, the processing default) or right-to-left (rtl). See the DITA Architectural Specification for best practices related to this attribute, and other aspects of DITA and translation. (ltr | rtl | lro | rlo | -dita-use-conref-target) #IMPLIED No
%id-atts; (id, conref) A set of related attributes, described at %id-atts; parameter entity PE not applicable Not applicable
%select-atts; (props, base, platform, product, audience, otherprops, importance, rev, status) A set of related attributes, described at %select-atts; parameter entity PE not applicable Not applicable
%global-atts; (xtrf, xtrc) A set of related attributes, described at %global-atts; parameter entity PE not applicable Not applicable
class, outputclass, keyref Common attributes described in Other common DITA attributes      

Return to main page.

OASIS DITA Version 1.1 Language Specification -- Committee Specification, 31 May 2007
Copyright © OASIS Open 2005, 2007. All Rights Reserved.