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.
These events are triggered by actions inside an HTML form even though they may apply to almost all HTML elements outside form elements.
These events are triggered by actions on keyboard keys.
These events are triggered by actions on the mouse movement as well as button presses.
These events are triggered by actions on the mouse movements while keys are pressed on a particular element.
These events are triggered when data is added or retrieved from the Clipboard.
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.