Skip to content

Rule · Accessibility

Input button has no accessible name

a11y/input-button-nameerrorvoid a11yupdated

Why it matters

<input type=button|submit|reset> without a value or label is announced as an unnamed button, so its action is unknown.

How to fix it

Give the input a meaningful value attribute (its visible text) or an aria-label.

Example

tsx
<input type="submit" value="Subscribe">

References

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.