Accessibility · ARIA

ARIA toggle field without a name

A custom checkbox on this page has role="checkbox" and a state, but no label, so screen readers cannot say what checking it will do.

How this page is built

The control below is a span with role="checkbox", aria-checked and tabindex. Its only content is a box symbol hidden with aria-hidden.

Why it matters

Checkboxes, radio buttons, switches and similar toggles need a name. Without one, a screen reader announces “checkbox, not checked” and the user cannot tell what they would be agreeing to.

Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

How to check it

Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule aria-toggle-field-name.

How to fix it

Add visible label text and connect it with aria-labelledby, or add an aria-label. A native <input type="checkbox"> with a <label> is simpler.

Back to all tests