Select element must have an accessible name

How to fix the select-name accessibility rule. Forms.

What this rule checks

Ensure select element has an accessible name

Who is affected

This dropdown has no label, so screen-reader users don't know what they are choosing.

How to fix it

Add a <label> connected to the select with for/id.

Example

Before

<select>…</select>

After

<label for="country">Country</label>
<select id="country">…</select>

WCAG success criteria

When this rule fails, the page fails:

Find it on your own page

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.

More detail