HTML5 Event Attributes

The event attributes listed below are standard, and are supported by most HTML5 tags. However, they are considered obtrusive and the recommended way of listening for events is documented at events.

Window Events
Only used in the  element to specify events triggered for a window object.

Form Events
Applies to all HTML5 elements, but generally used in  elements.

Keyboard Events
Useless in,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  , and  ; applies to all HTML5 elements.

Mouse Events
Useless in,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  , and  ; applies to all HTML5 elements.

Media Events
Applies to all HTML5 elements, but is most common in,  ,  ,  , and.