Attribute Collections

Five groups of attributes are used together frequently enough that they are placed into sets according to purpose, known as collections. The following table lists the collection name and each member attribute. Each attribute in the collection is further noted with its corresponding data type. The last collection, Common, is a superset of the other collections:

Collection nameAttributes
CoreClass (NMTOKEN), id (ID), title (CDATA)
I18N (Internationalization)dir ("rtl"|"ltr"), xml:lang (NMTOKEN)
Events (each of type Script)[1]onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
Style[2]style (CDATA)
CommonCore + I18N + Events + Style

[1] The Events collection is only defined ...

Get XHTML by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.