An event can be handled by the component that fired the event or by a component in the containment hierarchy that receives the event. The name attribute in <aura:handler> must match the name attribute in the <aura:registerEvent> tag in the component that fires the event.