WCAG A/AA requirement Priority: Critical
Form fields have no label
Some form fields have no label that assistive technology can read, so it is unclear what to type in them.
This text was translated automatically and has not been reviewed by a native speaker yet.
Why it matters to your customers
Screen reader users hear only "edit text" and do not know whether to enter a name, phone or postcode. In checkout this leads directly to abandoned orders. Placeholder-only fields also confuse older customers once they start typing.
Who is affected
- blind customers
- screen reader users
- older customers
- people with cognitive disabilities
- voice control users
How to fix it
Connect a visible <label for> to each input, or wrap the input in the label. Use aria-label only when a visible label is truly impossible. A placeholder is not a label. Check search, newsletter, quantity and checkout fields.
On Shopify
Checkout is controlled by Shopify, so problems are usually in the theme's search, newsletter, contact or quantity fields, or in forms added by apps. Add labels in the theme's Liquid templates or the app's settings.
On Shoptet (CZ)
Usually search, newsletter or contact fields in the template. Check template settings first; deeper changes to form markup usually need Shoptet or a partner.
On PrestaShop
Check search, newsletter, account and checkout templates in the theme and modules. Add <label> elements in the .tpl files or overridden module templates.
On WooCommerce
Check checkout, account and search forms in the theme and any form or checkout plugins. Add labels in child-theme templates or use plugin options that output real <label> elements.
Fix it with AI
Copy this prompt into ChatGPT, Claude or Copilot and add the HTML of the element. Check the answer before you publish it.
You are an experienced web developer and accessibility specialist. Fix this accessibility problem on my website so that it meets WCAG 2.2 level AA. Website: [https://…] ## Problem: Form fields have no label WCAG 2.2 4.1.2 (A) Some form fields have no label that assistive technology can read, so it is unclear what to type in them. **How to fix:** Connect a visible <label for> to each input, or wrap the input in the label. Use aria-label only when a visible label is truly impossible. A placeholder is not a label. Check search, newsletter, quantity and checkout fields. ## Elements found by the automated check [Paste the HTML of the element here, or the selector from the Pandus report] ## Requirements - Change only what is needed; keep the design and how the site works. - Do not add accessibility overlays or widgets; fix the code or the content. - Show the corrected code and say in which template or file it goes. - Explain how to check the fix with the keyboard and a screen reader.
Standards
| Standard | Clause |
|---|---|
| WCAG 2.2 | 4.1.2 (A) Name, Role, Value |
| WCAG 2.1 | 4.1.2 (A) Name, Role, Value |
| WCAG 2.0 | 4.1.2 (A) Name, Role, Value |
| EN 301 549 4.1.1 | 9.4.1.2 |
| EN 301 549 3.2.1 | 9.4.1.2 |
| Section 508 2017 | E205.4 |
| ДСТУ EN 301 549 2022 | 9.4.1.2 |
Automated check: axe-core rule label.
dequeuniversity.com, github.com, www.w3.org
Read next
WCAG success criterion
Guides and tools
- Accessible form validation and error messages
- HTML accessibility checker (WCAG 2.2)
- Free WCAG checker for WCAG 2.2 AA
Help articles
-
How to read a report and what to fix first
What each part of the report means and how to turn it into a to-do list for your developer.
Related checks
-
Some links do not say where they go
WCAG 2.4.4 A
-
Buttons and links are too small to tap easily
WCAG 2.5.8 AA
-
Some labels are placed where screen readers ignore them
WCAG 4.1.2 A
-
The page declares two different languages
WCAG 3.1.1 A