---
title: "ARIA attribute is prohibited for this role (a11y/aria-prohibited-attr)"
description: "a11y/aria-prohibited-attr: Some roles prohibit naming. Move the label onto an element with a role that supports naming, or render the text visibly."
canonical: https://void-design.vercel.app/rules/a11y/aria-prohibited-attr
lastModified: 2026-09-16
---

# ARIA attribute is prohibited for this role

`a11y/aria-prohibited-attr` · severity **warn** · category Accessibility · detected by `void a11y` and `void audit`

## Why it matters

Some roles prohibit naming. For example, aria-label on a generic <div> or <span> is ignored by most screen readers, so the text you expected users to hear is never announced.

## How to fix it

Move the label onto an element with a role that supports naming, or render the text visibly.

## References

- https://dequeuniversity.com/rules/axe/4.13/aria-prohibited-attr

## More accessibility rules

`void a11y` reports 48 rules in this category. WCAG 2.2 AA through axe-core, plus checks axe can't do alone: visible keyboard focus, 24/44px target size on mobile, 320px reflow and disabled zoom.

- `aria-hidden-body` aria-hidden on <body> — [a11y/aria-hidden-body](https://void-design.vercel.app/rules/a11y/aria-hidden-body)
- `aria-command-name` ARIA button/link/menuitem has no accessible name — [a11y/aria-command-name](https://void-design.vercel.app/rules/a11y/aria-command-name)
- `aria-input-field-name` ARIA input field has no accessible name — [a11y/aria-input-field-name](https://void-design.vercel.app/rules/a11y/aria-input-field-name)
- `aria-toggle-field-name` ARIA toggle has no accessible name — [a11y/aria-toggle-field-name](https://void-design.vercel.app/rules/a11y/aria-toggle-field-name)
- `nested-interactive` Interactive controls are nested — [a11y/nested-interactive](https://void-design.vercel.app/rules/a11y/nested-interactive)
- `duplicate-id-aria` Duplicate id referenced by ARIA — [a11y/duplicate-id-aria](https://void-design.vercel.app/rules/a11y/duplicate-id-aria)
- `frame-title` <iframe> has no title — [a11y/frame-title](https://void-design.vercel.app/rules/a11y/frame-title)
- `svg-img-alt` SVG image has no text alternative — [a11y/svg-img-alt](https://void-design.vercel.app/rules/a11y/svg-img-alt)

Detected by `void a11y` and `void audit`. Explain it in a terminal: `void rules a11y/aria-prohibited-attr`
