Input buttons do not have discernible text
How to fix the input-button-name accessibility rule. Names of links, buttons and controls.
The message you saw
Lighthouse runs axe-core inside it, so both are the same check, and the fix below works whichever tool showed you the message.
What it means
An <input type="submit">, type="button" or type="reset" shows the text in its value attribute and uses it as its name. This message means one of these buttons has an empty value (or one with only spaces) and nothing else gives it a name, so it is announced as just “button”.
A submit or reset input with no value attribute at all is fine: the browser shows and announces its default text (“Submit”, “Reset”). The problem is a value that is present but empty, or a type="button" with no value, which has no default text.
Who is affected
An <input type="button">, "submit" or "reset" has no text, so screen readers announce just "button".
Screen-reader users don’t know whether the button sends, saves, clears or cancels the form. Voice-control users can’t say its name to press it. Sighted users often see an empty or icon-only button too.
How to find it
- Run the checker, or search the page source for
<input type="submit",type="button"andtype="reset". - Look for buttons styled with a background image instead of text, which is a common reason for an empty
value.
How to fix it
- Put the button’s words in its
valueattribute:value="Send message". - If the design uses an icon, consider switching to a
<button>element, which can hold an icon and visually hidden text, or take anaria-label. - Run the check again.
Example
Before
<input type="submit" value="" class="send-icon">After
<input type="submit" value="Send message">Common mistakes
- An
aria-labelalso passes, but then the visible button and the spoken name can drift apart. Usevaluewhen the button shows text. - Buttons made with the
<button>element are covered by a separate rule.
WCAG success criteria
When this rule fails, the page fails:
- 4.1.2 Name, Role, Value (Level A, WCAG 2.0, 2.1, 2.2)
Check your fix
Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools. Scan again after your change: when the rule no longer appears under the problems, the fix worked.
An automated pass means this rule found nothing wrong. It doesn’t prove the page is accessible: some of what WCAG asks for needs a person to check, and the report’s manual checklist lists those steps.
Related fix guides
- Buttons do not have an accessible name
<input type="image">elements do not have[alt]text- Form elements do not have associated labels
More detail
- Deque University’s reference for input-button-name (the makers of axe-core, the engine our scanner uses)
- W3C’s Understanding 4.1.2
- All fix guides