Form Labels and Helper Text
What You'll Learn
You'll learn how to use visually hidden labels when your design requires placeholder-only inputs or when grouping multiple related fields together.
The Design vs. Accessibility Dilemma
Sometimes designers create beautiful, minimal forms that show only placeholder text inside inputs—no visible labels. Or they group several related fields (like three dropdowns for a date) under one visual heading. These designs look clean, but screen readers need actual <label> elements associated with inputs to announce what each field is for.
The solution? Visually hidden labels that screen readers can read but sighted users never see.
Why Placeholders Aren't Enough
When an input only has a placeholder="Email address", screen readers might skip it or only announce "edit text" without context. Plus, the placeholder disappears when someone starts typing. A visually hidden label provides persistent, accessible context without disrupting the minimal design.
The Pattern
For placeholder-only designs:
<label for="email" class="visually-hidden">Email address</label>
<input id="email" type="email" placeholder="Email address">
For grouped fields (like three selects for date of birth):
<fieldset>
<legend class="visible-heading">Date of Birth</legend>
<label for="month" class="visually-hidden">Birth month</label>
<select id="month">...</select>
<label for="day" class="visually-hidden">Birth day</label>
<select id="day">...</select>
<label for="year" class="visually-hidden">Birth year</label>
<select id="year">...</select>
</fieldset>
The .visually-hidden class uses the CSS pattern you learned earlier (clip path, not display:none).
Think of It Like Audio Descriptions
Just as movies can have audio descriptions that explain visual scenes without changing what's on screen, visually hidden labels provide context to non-visual users without altering the visual design.
Key Takeaway: Use visually hidden labels whenever design constraints prevent visible labels—never leave form inputs without associated label elements, even if those labels aren't seen by sighted users.