Input buttons must have an accessible name

Inputs with type="button", "submit" or "reset" must have a text name, usually from their value attribute, so that users know what pressing them will do.

Rule IDinput-button-name
ImpactCritical
Success criterion 4.1.2 Name, Role, Value · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed with a text: from the page or written by AI

Example

Before
<form action="/newsletter">
  <label for="email">Email</label>
  <input type="email" id="email" name="email">
  <input type="button" class="btn-send" onclick="subscribe()">
</form>

A screen reader announces just “button”, and sighted users see a blank button.

After
<form action="/newsletter">
  <label for="email">Email</label>
  <input type="email" id="email" name="email">
  <input type="button" class="btn-send" value="Subscribe" onclick="subscribe()">
</form>

A screen reader announces “Subscribe, button”.

Why it matters

An <input> button gets its visible label and its accessible name from the value attribute. Leave it out on type="button", or set value="" on a submit or reset button, and the control has no name. Screen reader users hear only “button” and must guess whether it sends the form, clears it or opens something else. Clearing a long booking form by mistake is a real risk.

Speech recognition users cannot say the button's name to press it. Sighted users may also see an empty box if the CSS that added a background icon fails to load. Because it blocks the main action of a form, this issue is rated critical.

How to fix it

Give the input a value. This is the simplest and most reliable fix, and it shows the same text to everyone:

<input type="submit" value="Place order">

Leave submit and reset buttons without value if the default label fits. Browsers then use their built-in text (“Submit”, “Reset”). Never use an empty value="", which removes that default.

The button shows only a background icon. Keep a text name with aria-label:

<input type="submit" class="icon-search" value="" aria-label="Search">

This works, but the visible design still gives sighted users no text. A <button> element is often a better choice because it can contain both an icon and text:

<button type="submit">
  <svg aria-hidden="true" focusable="false">…</svg>
  Search
</button>

Use type="image" only with an alt. Image inputs are named by their alternative text, which is a separate check.

Checklist

  1. Set a value on every input of type button.
  2. Never use an empty value on submit or reset inputs.
  3. Use aria-label for icon-only input buttons.
  4. Prefer a button element when you need icon plus text.

How the check works

The check looks at <input> elements with type="button", "submit" or "reset". It passes when the input has a non-empty value, aria-label, aria-labelledby, title or an associated label, and when a submit or reset input simply has no value (the browser default applies). It fails when no name can be computed, for example with value="".

Resources

Updated October 27, 2026