Input buttons have discernible text

Input buttons have labels so screen readers can describe their action.

On this page

Impact

ScanGov impact ratings

About

Adding discernable and accessible text to input buttons may help screen reader users understand the purpose of the input button.

Risks

Screen reader users cannot identify or interact with elements.

Why it's important

Gives screen reader users meaningful descriptions of interactive elements so they can understand and use them.

User stories

As a screen reader user, I want all interactive elements to have clear, descriptive names so that I know what they do.

Code

Failing pattern:

<!-- Fail: empty value gives no accessible name -->
<input type="submit" value="">

Passing pattern:

<!-- Pass: descriptive value -->
<input type="submit" value="Submit application">

Error

ScanGov messaging when a site fails a standard:

Failed: Input buttons have discernible text

Guidance

Indicators

On this page