Definition of HTML "common attribute"
Common attributes are attributes that can be coded on almost any HTML element. In HTML, they are global attributes, but when being processed as pure XML, their names will be allocated in the namespace partition for element local attributes. In the HTML 4 and xHTML DTDs these were also known as generic attributes.
The common HTML attributes include:
- core attributes
- class, id, style and title
- internationalization attributes
- lang and dir
- event handling attributes
- the
on...
event attributes for client-side dynamic script events - accesskey, contenteditable, contextmenu, data-*, draggable, dropzone, hidden, item..., spellcheck, tabindex