Skip to content

Form fields without labels

Some form fields (sign-up, search, checkout, contact) have no label linked to them, so a screen reader announces a blank box.

Why it matters

Placeholder text isn’t a label: it vanishes when typing starts, which is hard for anyone with memory or attention difficulties.

autocomplete values let browsers and password managers fill fields in, which helps people with motor and memory disabilities most.

How to fix it

  1. Give every field a visible label linked to it with for and id:
    <label for="email">Email</label>
    <input id="email" type="email" autocomplete="email">
  2. Add autocomplete values for personal details: email, name, given-name, family-name, tel, street-address, postal-code.
  3. Show error messages next to the field, saying what’s wrong and how to fix it (“Enter an email address like name@example.com”), not just “Invalid”.
  4. If a design really has no room for a visible label, use aria-label, but a visible label is better for everyone.
On Shopify
  1. Newsletter and contact forms come from theme sections; check each field has a label in the section’s code or settings.
On WooCommerce
  1. Checkout fields have labels by default; plugins that change them sometimes remove them.

Common mistakes

  • Using the placeholder as the only label.
  • A label next to the field but not linked to it, so screen readers don’t connect them.
  • Errors shown only in red, or only at the top of the form.

Check your fix

Once the change is live, check the page again.