ID Attribute Type


 

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

Specific Attributes with Type ID

There are no Specific Attributes with type ID.


Common Attributes with Type ID

From the Core Attribute Collection:
  1. id (#REQUIRED on map)

Attribute Value for Type ID

An element identifier which must be unique to the document. It may consist of any combination of letters, digits, and the four punctuation characters _:.- but must begin with a letter, a colon or an underscore

In XHTML 1.1, the only attribute of type ID is the id attribute. Almost all elements (all excepting base head, html, meta, script, style, and title) may have an id attribute but only the map element is required to have one.

Important notes about id attributes:
  1. Any single element may not have more than one id and each ID value must be unique to the document.
  2. If compatibility is desired with HTML 4 identifiers, the ID value must match the regular expression [a-zA-Z][a-zA-Z_:.-]* (see *HTML 4.01 - SGML basic types)
  3. If compatibility is desired with CSS identifiers, the W3C's *CSS 2.1 - Characters and Case information should be noted.

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