HTML and CSS Reference
Keyboard Event Handlers
HTML supports three keyboard events: the user pressed down a key, the user is holding down a key, and the user
released a key (see Table 3-10 ).
Table 3-10. Keyboard Event Handlers
Runs the Script When...
A key is pressed
A key is pressed and released
A key is released
Mouse Event Handlers
On Graphical User Interfaces (GUIs), user actions are often triggered by the mouse. The mouse event attributes
described in Table 3-11 apply to all HTML5 elements.
Table 3-11. Mouse Event Handlers
Runs the Script...
On a single click
On a double-click
When the mouse button is pressed
When the mouse pointer reaches an area
When the mouse pointer leaves an area
When the mouse pointer moves
When the mouse pointer moves out of an element
When the mouse pointer moves over an element
When the mouse button is released
When the mouse wheel is being rotated
When the scrollbar of an element is being scrolled