HTML events include Window events, document events, Form events, Keybord events, Mouse events and Media events.
1. window event
The window event is an event triggered for the window object.
Syntax: window.addEventListener()
2. document event
Triggered on document object.
Syntax: document.addEventListener()
3. form event
Event triggered by an action within an html form (applies to almost all html elements, but most commonly used in form elements)
4. keyboard event
Keyboard input triggers this event
5. mouse event
mouse events
6. media events
Events triggered by media (such as videos, images, and audio) (applies to all HTML elements, but is common in media elements such as <audio>, <embed>, <img>, <object>, and <video>)