There are many different types of events but some common events include:
Let's go over a basic onclick event.
In our sample html file, we have a
<button> element that will display the time when clicked.
In this case the event is the click, the function that is triggered is the date() function.
We can change onclick to onmouseover, for example - to change the event that triggers the function.