Don't put aria-label on generic elements like divs

The title already tells most of the story, but here s why you must avoid labeling generic elements like divs or spans using aria-label or aria-labelledby . Looking at the ARIA spec, you ll find section "5.2.8.6 Roles which cannot be named (Name prohibited)" . It lists all roles that cannot be named. It includes “generic”, which is the default role of divs and spans. caption code deletion emphasis…