<shape>

The <shape> element defines the shape of a linkable region in an image map.

Usage information

The values for use in the <shape> element are defined by the HTML5 specification. The following values are supported as the content of the <shape> element:

circle
Indicates that the linkable region is a circle
default
Indicates the linkable region is a rectangle that exactly covers the entire image
poly
Indicates that the linkable region is a polygon
rect
Indicates that the linkable region is a rectangle

If the <shape> element is left empty, a rectangular shape is assumed.

Specialization hierarchy

The <shape> element is specialized from <keyword>. It is defined in the utilities domain module.

Content model

(Text | <text> )*

Zero or more

Attributes

The following attributes are available on this element: universal attributes and @keyref.

For this element, the @translate attribute has a default value of no.

The following attributes are available on this element: universal attributes and the attributes defined below.

@keyref
Specifies a key name that acts as a redirectable reference based on a key definition within a map. See The keyref attribute for information on using this attribute.

For HDITA, the equivalent of @keyref is @data-keyref

@translate
For this element, the @translate attribute has a default value of no.

Example

This section is non-normative.

See <imagemap>.