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 and PageSpeed Insights
Input buttons do not have discernible text.
axe-core, axe DevTools and this checker
Input buttons must have discernible text (rule input-button-name)

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

  1. Run the checker, or search the page source for <input type="submit", type="button" and type="reset".
  2. Look for buttons styled with a background image instead of text, which is a common reason for an empty value.

How to fix it

  1. Put the button’s words in its value attribute: value="Send message".
  2. If the design uses an icon, consider switching to a <button> element, which can hold an icon and visually hidden text, or take an aria-label.
  3. Run the check again.

Example

Before

<input type="submit" value="" class="send-icon">

After

<input type="submit" value="Send message">

Common mistakes

WCAG success criteria

When this rule fails, the page fails:

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

More detail