Hasty Briefsbeta

Bilingual

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

4 days ago
  • #aria-label
  • #web accessibility
  • #screen readers
  • Avoid placing aria-label on generic elements like divs or spans.
  • The ARIA spec prohibits naming generic roles; labeling them leads to inconsistent screen reader announcements.
  • Screen readers vary: some announce the label, others ignore it, and some announce content.
  • Exceptions include section elements (role changes to region) and popovers (role changes to group).