The order of the events that happen on an element is known as event propagation.
As soon as an event is fired up, the element bubbles up the DOM tree. This basically means that the child node is called first and then the parent node. This is called event bubbling.
Even capturing is the opposite of event bubbling. Here, first, the parent node is called, and then the child node.