Enumeration Attribute Type


 

The Enumeration Attribute Type is defined by the W3C XML 1.0 Recommendation.
Reference: *W3C - XML 1.0 - Attribute Types

See also: the Boolean and Shape Attribute Types, which are declared in the DTD as type Enumeration.

Specific Attributes with Type Enumeration

  1. align (left | center | right | justify | char):
    This is declared on the elements: col, colgroup, thead, tfoot, tbody, tr, th, td
  2. frame (void | above | below | hsides | lhs | rhs | vsides | box | border):
    This is declared on the element: table
  3. method (get | post) - default="get":
    This is declared on the element: form
  4. rules (none | groups | rows | cols | all):
    This is declared on the element: table
  5. scope (row | col | rowgroup | colgroup):
    This is declared on the elements: th, td
  6. type (submit | button | reset) - default="submit":
    This is declared on the element: button
  7. type (text | password | checkbox | radio | file | hidden | image | button | submit | reset) - default="text":
    This is declared on the element: input
  8. valign (top | middle | bottom | baseline):
    This is declared on the elements: col, colgroup, thead, tfoot, tbody, tr, th, td
  9. valuetype (data | ref | object) - default="data":
    This is declared on the element: param

Common Attributes with Type Enumeration

From the I18N Attribute Collection:
  1. dir (ltr | rtl) (#REQUIRED on bdo)

Attribute Value for Type Enumeration

If present, the attribute must take one of the listed values

Attribute with the type Enumeration must be given a value equal to one of the possibilities listed in the definition for that attribute.

For example, the attribute scope of type Enumeration (row | col | rowgroup | colgroup), if present, must take one of these four values, e.g. scope="row".

The default value is that given to an attribute which is not present on the element for which it is declared. For example, if a button element does not have the type attribute provided then the value of "submit" is automatically assigned to it. This means that
<button>Button Text</button>
is equivalent to
<button type="submit">Button Text</button>.

See also: the Boolean and Shape Attribute Types, which are declared in the DTD as type Enumeration.


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) > Enumeration Attribute Type