We'd like to set Google Analytics cookies to learn how people use the Knowledge Base, so we can improve it. We set them only if you accept.

Skip to main content
Digital Accessibility Knowledge Base

aria-input-field-name

Web validation

ARIA input fields must have an accessible name that is readable by assistive technologies.

Custom form controls built with ARIA roles such as textbox, searchbox, or combobox need a programmatic name. Without one, screen‑reader users hear only “edit text” or “input”, making the control’s purpose unclear and increasing form errors. Provide a name using aria-label or aria-labelledby.

Pass Patterns

Using aria-label

A <div> with the textbox role uses aria-label to expose its purpose.

HTML
<div role="textbox" tabindex="0" aria-label="Search keywords"></div>

Using aria-labelledby

A <div> with the textbox role references on‑screen text with aria-labelledby.

HTML
<span id="msg">Message</span>
<div role="textbox" tabindex="0" aria-labelledby="msg"></div>

Fail Patterns

Missing label

A <div> with the textbox role doesn’t specify a label.

HTML
<div role="textbox" tabindex="0"></div>

aria-labelledby references empty text

A <div> with the textbox role references empty on‑screen text with aria-labelledby.

HTML
<span id="msg"></span>
<div role="textbox" tabindex="0" aria-labelledby="msg"></div>

WCAG techniques

Sufficient techniques

ACT Rules

Try It Yourself

Using a screen reader

New to screen reader testing, or need a refresher?
Review this article first: Practical guides for using screen readers

  1. Load the page and open a screen reader.
  2. Move focus to the ARIA text field.
  3. Listen for the element’s name.

Expected result: The screen reader announces the accessible name (for example, “Search keywords”).

Actual result: The screen reader only announces the element type, without a name that conveys its purpose.

FAQ

How does this issue relate to 4.1.2 Name, role, value?

SC 4.1.2 requires that every user-interface component expose a programmatic name, role, and, where applicable, value. Inputs without an accessible name violate that requirement.

Why is this issue marked as Serious?

Unnamed inputs block users who rely on screen readers from knowing what data to enter, preventing successful form submission. On mainstream browsers and assistive technologies, this results in lost information, errors, and task abandonment.

Standards and Regulations

StandardSuccess CriterionReference
WCAG 2.24.1.2 Name, Role, Value (A)For all user interface components, the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to assistive technologies.
EN 301 5499.4.1.2 Name, Role, ValueSame as the WCAG text.
508 Trusted Tester1.3.1-programmatic-label, 5.CThe combination of the accessible name, accessible description, and other programmatic associations (e.g., table column and/or row associations) describes each input field and includes all relevant instructions and cues (textual and graphical).

Personas impacted by this issue