Empty Form Field Labels
WCAG Focus: WCAG 1.3.1 (A), 3.3.2 (A), 4.1.2 (A)
Some WordPress form plugins output an empty <label for="field_1"></label> tag when an author leaves the Field Label setting blank in the form builder (relying on placeholder text instead). Because an empty <label> contains zero text, the input still has no accessible name.
Why This Pattern Violates WCAG
WCAG 3.3.2 (Level A) and 4.1.2 (Level A) require form labels to contain descriptive text, not empty whitespace or hidden icons.
Code Comparison
Inaccessible Empty Label Tag
<label for="phone"></label>
<input id="phone" type="tel" placeholder="Phone Number">
Compliant Non-Empty Label
<label for="phone">Phone Number</label>
<input id="phone" type="tel">
How to Fix It in WordPress
- Enter descriptive text in every form builder label field.
- If a compact design requires hiding the label visually, use a screen-reader-text CSS class inside the <label> rather than leaving it empty.
Finding This Issue Automatically
Form plugins often emit empty <label> elements whenever an editor toggles "Hide Label" or clears a field title. The WP ADA Compliance Check plugin flags empty form field labels immediately so no input reaches visitors nameless.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

