The IDREF Attribute Type is defined by the W3C XML 1.0 Recommendation.
Reference: *W3C - XML 1.0 - Attribute Types
for:labelusemap:object, img, input type="image"There are no Common Attributes with type IDREF.
A reference to an element identifier of type ID
The IDREF Attribute Type allows an element with such an attribute to refer to
another element by its id.
For example, a label element may have a
for
attribute (of type IDREF) which refers to the id of
the input
(or select,
textarea etc.) element for which it is a label.
The code below shows how a label may be
assigned to an input type="text" element:
The value of an attribute with Type IDREF must correspond to the value of
an existing id attribute in the document. If it does not
W3C Validation will result in a warning. (Interestingly, it is only
a warning which is generated and not an error - despite the
*XML 1.0 Validity Constraint for IDREF.)