Shape Attribute Type


 

The Shape Attribute Type is a data type defined by XHTML Modularisation 1.1, declared in the DTD as XML 1.0 type Enumeration.
Reference: *W3C - XHTML Modularisation 1.1 - Attribute Types

Specific Attributes with Type Shape

  1. shape (rect | circle | poly | default) - default="rect":
    This is declared on the elements: a, area

Common Attributes with Type Shape

There are no Common Attributes with type Shape.


Attribute Value for Type Shape

A shape within an image, which can be "rect", "circle", "poly" or "default" (where "rect" denotes a rectangle and "poly" denotes a polygon)

The Shape Attribute Type is used in conjunction with the Coords Attribute Type in order to specify a region within an image map created using the Client-side Image Map Module. It is declared in the DTD as an Enumeration and can take one of the values:

rect
A rectangle
circle
A circle
poly
A polygon (with arbitrary positioning of its vertices)
default
"default" is the same as "rect" except that all parts of the image which are not already defined by a Shape/Coords pair also apply to this "default" Shape. Somewhat confusingly, the default value for the shape attribute (the shape which is assumed in the absence of this attribute) is "rect"

Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 01 Oct 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > Data Types in XHTML 1.1 > Attribute Types (XHTML 1.1) > Shape Attribute Type