You are here: / Resources / HTML Event Attributes

HTML Event Attributes

HTML Event Attributes
This entry is part 2 of 2 in the series HTML References

Share!



HTML adds interactivity with the user through events triggered based on actions in a web browser. Most of these events target JavScript script (event handlers) which can be programmed to do whatever the web developer needs it to do.

The HTML 4.01 specification had defined 19 events. HTML5 added more events. Those which were introduced in HTML5 are labeled “Y” in the tables below.

These are the global event attributes that can be added to HTML elements to define event actions.

Window Event Attributes

These are the events triggered by the window object.

Form Events

These events are triggered by actions inside an HTML form even though they may apply to almost all HTML elements outside form elements.

Keyboard Events

These events are triggered by actions on keyboard keys.

Mouse Events

These events are triggered by actions on the mouse movement as well as button presses.

Drag Events

These events are triggered by actions on the mouse movements while keys are pressed on a particular element.

Clipboard Events

These events are triggered when data is added or retrieved from the Clipboard.

Media Events

These events are triggered by actions on media like videos, images, and audio. They apply to all elements though it is most practical for use on elements such as audio, embed, img, object, and video.

Misc Events

Series Navigation<< HTML Color Codes