id Attributeid Attributeid is a Common Attribute from the
Core Attribute Collection
and is of Type ID.
It may be used on most elements in the Element Index - all except: base, head, html, meta, title. It is #REQUIRED on the map element.
Note: Although the id attribute is seemingly permitted by the
*XHTML 1.1
Structure Module DTD on the
html and head elements,
its presence on these elements currently
causes a page to fail W3C Validation and so they are not considered valid in this reference.
The id attribute can be used on almost any element (see above) to specify a
unique identifier for that element. This id may then be referenced, for example,
within a script or CSS stylesheet or possibly by another
XHTML element which has an attribute of type
IDREF or
IDREFS.
id attributes:
id
and each such value must be unique to the document.[a-zA-Z][a-zA-Z_:.-]* (see *HTML 4.01 - SGML basic types)See also the class attribute.