Select elements have associated label elements

Dropdown menus have labels so screen readers can identify them.

On this page

Impact

ScanGov impact ratings

About

Form elements without effective labels can create frustrating experiences for screen reader users.

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: select with no label -->
<select name="state">
  <option value="al">Alabama</option>
</select>

Passing pattern:

<!-- Pass: label associated via for/id -->
<label for="state">State</label>
<select id="state" name="state">
  <option value="al">Alabama</option>
</select>

Error

ScanGov messaging when a site fails a standard:

Failed: Select elements have associated label elements

Guidance

Indicators

On this page