How to fix form elements that do not have associated labels
This warning means a form field (name, email, search box, checkbox) has no text properly connected to it in the page code, so screen readers cannot tell people what to type. The fix is to give each field a real <label> linked to it, or in rare cases an accessible name through aria-label.
You may have met this message in Google Lighthouse, an accessibility checker or an audit report: "Form elements do not have associated labels". It sounds technical, but the idea is simple. Somewhere on your site there is a field a visitor is supposed to fill in, and the code does not say what that field is for.
Sighted visitors often cannot tell anything is wrong, because there may be text sitting next to the field. The problem is that the text is not connected to the field in the code. A person using a screen reader just hears "edit text" or "blank" and has to guess.
What people see
The usual signs of this problem:
- A screen reader announces a field as "edit text" with no name.
- Clicking the words next to a checkbox or radio button does nothing, so only the tiny box itself can be clicked.
- Voice control users cannot say "click Email" to reach the field.
- Browser autofill sometimes fails to recognise the field.
- The only hint is grey placeholder text inside the box, which vanishes as soon as someone types.
The usual causes are a theme or form builder that outputs the text as a plain paragraph or heading, a search box with just an icon, a newsletter field in the footer, or a custom form where a developer used placeholders instead of labels.
Why it matters
First, people. Anyone who is blind, has low vision, or uses voice control or a keyboard can be locked out of your contact form, checkout or booking form. Labels also help everyone else: a larger click target on checkboxes, and a reminder of what the field is once you have started typing.
Second, sales and trust. A form that cannot be completed is a lost enquiry or a lost order. Missing labels are covered by WCAG success criteria 1.3.1 (Info and Relationships), 3.3.2 (Labels or Instructions) and 4.1.2 (Name, Role, Value), and accessibility rules in several countries point to WCAG, so it is worth fixing before someone complains.
Third, search. Labels are not a ranking trick, but a form people can finish is one that converts the visitors your search work brings in.
How to check if your site has it
These free methods work without being a developer:
- Lighthouse. In Chrome, open your page, right click, choose Inspect, then the Lighthouse tab, tick Accessibility and run it. Look for "Form elements do not have associated labels" in the results. It lists the exact fields.
- WAVE or axe DevTools. Both are well-known free browser extensions. Missing labels show up as errors on the page, marked next to each field.
- The click test. Click the text beside a checkbox or radio button. If the box does not toggle, the text is not a linked label. For text fields, click the text above the box: the cursor should jump into the field.
- A screen reader. Turn on VoiceOver (Mac and iPhone) or NVDA (free on Windows), then press Tab through the form. Each field should announce a clear name, such as "Email address, edit text".
If you are a SiteMonday customer, the week 7 accessibility audit checks pages against WCAG 2.2 and lists unlabelled fields in the ranked fix list, so you know which ones to deal with first.
How to fix it in general
There are three ways to name a field, in order of preference.
1. A visible label linked with `for` and `id`. This is the best option. The for value on the label must exactly match the id on the field:
<label for="email">Email address</label>
<input type="email" id="email" name="email">
2. A label wrapped around the field. This also works and needs no id:
<label>
Email address
<input type="email" name="email">
</label>
3. `aria-label` for fields with no visible text. Use this only when design truly has no room for text, such as a search box with just a magnifier icon:
<input type="search" aria-label="Search the site">
A few details that catch people out:
- Every
idon a page must be unique. Two forms that both useid="email"will confuse the link. - A placeholder is not a label. Keep it as an example if you like, but add a real label too. See placeholder used as a label.
- If you want a label hidden visually, use a "visually hidden" CSS class that keeps the text available to screen readers. Hiding it with
display:noneusually removes it from assistive technology as well. - Buttons are named by their text or
value, and fields withtype="hidden"need nothing. - Groups of radio buttons or checkboxes need a label on each option, plus a group question wrapped in
<fieldset>and<legend>.
Fixing it on common platforms
Where things live depends on your version and theme, so look for the idea rather than an exact menu name.
- WordPress. In your form plugin's field settings, look for a Label option and make sure it is filled in and not set to hidden. If the label is already there, the theme may be rendering the form differently, in which case ask your developer. There is a WordPress guide with more detail.
- Shopify. Theme forms such as search, newsletter and contact are in the theme code (usually under Online Store, Themes, Edit code, in the
sectionsandsnippetsfolders). Look for<inputtags with no label nearby. - Wix, Squarespace and Webflow. Form elements usually have a label or field name setting in the settings panel for the element. Fill it in and avoid hiding it. In Webflow, check that each label is linked to its field, depending on how the form is built.
- Elementor. The Form widget has a Label setting per field, and a Show Label switch. Turn it on for each field.
- React and custom code. Use
htmlForinstead offoron the label, and generate unique ids, for example with React'suseIdhook.
How to confirm the fix worked
Run Lighthouse again on the same page and check that the warning is gone. Then repeat the click test: clicking each label should move focus into the field or toggle the box. If you can, tab through the form with a screen reader once. Test every page with a form, since the footer newsletter box is often a separate piece of code from the contact form.
Also check what happens when something goes wrong. Error messages should be tied to the field they belong to, which is covered in form errors not announced.
How to stop it coming back
- Make "every field has a visible label" part of your checklist for any new form, popup or landing page.
- When choosing a form builder or theme, test its default forms with Lighthouse before you commit.
- Do not let design changes remove labels to save space. A floating label that moves above the field is fine if it is still a real
<label>. - Re-run an accessibility check after theme updates and redesigns, as updates can change the generated code.
- Tell your developer or agency that labelled fields are a requirement, not a nice extra.
None of this takes long once you know what to look for. Many sites can fix every unlabelled field quickly, though it depends on the theme and form builder.
Step by step for your platform
- Form inputs missing labels on WordPress
- Form inputs missing labels on Shopify
- Form inputs missing labels on Wix
- Form inputs missing labels on Squarespace
- Form inputs missing labels on Webflow
- Form inputs missing labels on Elementor
- Form inputs missing labels on React
Questions
Is a placeholder enough to count as a label?
No. Placeholder text disappears when someone types, often has low contrast, and is not reliably announced as the field's name. Use a real `<label>` and keep the placeholder only as an example.
Can I hide a label if my design has no room for it?
Yes, with a visually hidden CSS class that keeps the text available to screen readers. Avoid `display:none`, which usually hides it from assistive technology too. For icon-only fields, `aria-label` is also acceptable.
Do hidden fields and buttons need labels?
Fields with `type="hidden"` need none. Buttons get their name from their text or `value`, though icon-only buttons need an `aria-label`.
Why does Lighthouse still show the warning after I added a label?
Most often the `for` value does not exactly match the field's `id`, or the `id` is used twice on the page. It can also be that the label was added to a different form than the one flagged.
Does fixing labels help my Google ranking?
Not directly. The benefit is more visitors being able to finish your forms, and meeting accessibility standards such as WCAG.
Who should fix this, me or my developer?
If your form builder has a Label setting, you can usually fix it yourself. If the problem is in theme or custom code, a developer should make the change, and it is usually a small job.