In the DOM event flow, what is the correct order of phases when an event is dispatched from a nested element?
Correct answer: B
Which statement correctly describes the difference between event.stopPropagation() and event.preventDefault()?
You have a with many items. You attach a single click listener to the to handle clicks on any . This pattern is known as:</strong></p> A Event capturing B Event bubbling C Event delegation D Event isolation Submit Try again Correct answer: C By listening on a common ancestor and using the event.target to determine which was clicked, you are employing event delegation. This leverages bubbling so the ancestor receives the event. Options A and D are not standard terms, and B describes the mechanism but not the pattern.</div> </div> </form> ## Related - Reading: [Events](../ui/events.html) · [DOM](../ui/dom.html) · [Component](../ui/component.html) - Agent Skill: `ui-events`
Correct answer: C