Form Fields With Empty or Missing Labels

Form Fields With Empty or Missing Labels

WCAG Focus: WCAG 1.3.1 (A), 3.3.2 (A), 4.1.2 (A)

Minimalist WordPress contact forms, newsletter signups, and header search bars often omit <label> elements and rely solely on placeholder="Enter your email". The moment a user clicks inside the field and begins typing, the placeholder vanishes—leaving people with cognitive disabilities unsure what field they are filling out, while screen readers may fail to announce the input’s purpose.

Why This Pattern Violates WCAG

WCAG 3.3.2 Labels or Instructions (Level A) requires persistent visible labels or instructions whenever content requires user input.

WCAG 1.3.1 (Level A) and 4.1.2 (Level A) require programmatic association between each <label for="…"> and its matching input id, or an aria-label when context is visually self-evident.

Code Comparison

Inaccessible Placeholder-Only Input

<input type="email" name="email" placeholder="Email Address">

Compliant Associated Label & Input

<label for="newsletter-email">Email Address</label>
<input id="newsletter-email" type="email" name="email" autocomplete="email">

How to Fix It in WordPress

  • Always pair every input, select, and textarea with a <label for="…"> element matching the input’s id.
  • Avoid hiding labels globally inside form plugins unless a clear visual icon accompanies aria-label.

Finding This Issue Automatically

Third-party WordPress form builders and theme search widgets routinely ship placeholder-only inputs. The WP ADA Compliance Check plugin inspects every form control on your site and can automatically fix missing labels on standard WordPress forms by adding aria-label attributes.

WCAG References & Supporting Materials

WCAG Success Criteria

Supporting Documentation & Guides

Subscribe

Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

Cart Accessibility Tools
hide