When you click anywhere in this paragraph, and even this space, the text turns green and grows bigger.
What you see here is bubbling. If you click
on the italicized text, the event bubbles up. It is initially
perceived in the em
element. It then bubbles up to
the parent element, the p
element, which has
and event listener for click
, so it turns green.
We will put an event listener on the em
element
and see what happens.