On this page
What this issue is
A placeholder is the hint text shown inside an empty form field, set with the placeholder attribute. When the visitor starts typing, it is removed. If the placeholder is the only thing telling people what the field is for, the field has no lasting name.
This is closely related to WCAG 2.2 guidance on labels and instructions (success criteria 3.3.2 Labels or Instructions and 1.3.1 Info and Relationships). Placeholders also tend to be pale grey, which often fails text contrast. A related issue, inputs with no label at all, is covered separately; this guide focuses on the disappearing hint and what it does to people filling in the form.
Why it costs you leads or sales
People get distracted, switch tabs, or fill in a long form in several goes. When they return to a half-filled field, nothing says what it was. They guess, enter the wrong data, or give up. Errors also get harder to fix: a message saying 'invalid value' is useless if the field name has gone.
People using screen readers, people with memory or attention difficulties, and anyone on a small phone screen are hit hardest. Browser autofill makes it worse, because filled values can leave users unsure which data went where.
- Sees empty fieldPlaceholder reads 'Phone'
- Starts typingPlaceholder disappears
- Gets interruptedReturns, forgets purpose
- Enters wrong data or leavesForm not submitted correctly
The visitor understands the field at first, then loses the hint while typing and mistakes the data.
Example: illustrative numbers showing how a persistent label could change how many people finish a form. Not measured data.
How to check if your site has it
- Open each lead, checkout and booking form and look for a text label above or beside every field.
- Click into a field and type one character. Does anything still tell you what the field is?
- Fill in half the form, look away, then come back. Can you tell what each filled field holds?
- Check placeholder colour. Pale grey on white often falls below 4.5:1 contrast.
- Right-click a field, choose Inspect, and look for a
<label for="...">that matches the inputid. - Test on a phone, where autofill and zoom make missing labels more obvious.
<!-- Problem: the placeholder is the only name -->
<input type="email" placeholder="Email address">
<!-- Better: a persistent label -->
<label for="email">Email address</label>
<input type="email" id="email" name="email" placeholder="name@example.com">How to fix it
Add a visible label to every field
Place it above the input so it stays on screen while typing. Link it with
forandid.Shorten the placeholder to an example
Use it for format hints such as 'name@example.com', not as the field name.
Fix placeholder contrast
Make placeholder text at least 4.5:1 against the field background, or remove it.
Avoid floating labels unless the label stays readable
If you use them, check the shrunk label is large enough and has enough contrast.
Retest on desktop and mobile
Type into each field and confirm the label stays.
Form plugin label settings
In most form plugins (Contact Form 7, WPForms, Gravity Forms, Elementor Forms) set the label position to visible, usually in the field or form settings, and make sure the label is not hidden.
Contact Form 7
Add a
<label>around each field in the form template instead of relying on the placeholder attribute.
Theme form sections
In the theme code editor, check the contact form and customer account templates. Many themes hide labels with a visually hidden class; replace this with visible labels where the placeholder is the only text.
Third-party form apps
Open the app's form designer and switch label display on.
Form Block
Select the form, keep the Label element above each Input, and set the placeholder in the input's Settings panel to an example only. Do not delete or hide the label.
Wix Forms
Open the form in the editor, choose Settings, and turn on the field label. Keep the placeholder short.
Form block
Edit the form block, open each field, and set Label placement so the label shows. Squarespace lets you choose label placement in the block's Design options.
Form builder
In the form builder, open each field's properties and keep the Label filled in and shown. Use the Placeholder box for an example only.
Add labels and style them
Use a real
<label for>for each input. If the design needs a compact layout, keep the label visible and adjust spacing rather than hiding it.
label {
display: block;
margin-bottom: 4px;
font-weight: 600;
}
input::placeholder {
color: #595959; /* about 7:1 on white */
opacity: 1;
}Before
- Field name appears only inside the empty field
- Hint vanishes on first keystroke
- Pale grey text hard to read
- Errors are confusing
After
- Label sits above the field and stays visible
- Placeholder shows a short example
- Text meets 4.5:1 contrast
- Errors can refer to a field name
How to confirm it's fixed
- Type into every field and confirm the label stays visible.
- Click each label and check the cursor moves into the right field.
- Run a free accessibility scanner such as the browser's built-in Lighthouse audit and check there are no 'form elements do not have associated labels' warnings.
- Check placeholder contrast with a contrast checker.
- Submit a test entry and confirm it still arrives.
How to prevent it happening again
Add a rule to your design system: every input needs a visible label, and placeholders are examples only. Include a label check in your launch checklist for new forms, and review form plugin or theme updates, since they can change label styles. Run an accessibility scan whenever you add or redesign a form.
How FunnelGuard handles this
This is outside what FunnelGuard checks. It is a design and accessibility question about how a form looks and reads, which needs a different kind of tool: an accessibility scanner (such as Lighthouse or axe) combined with a manual review of your forms. FunnelGuard is a synthetic monitoring service that runs your real journeys on a schedule and checks that forms submit, tracking fires and test leads arrive. Use it alongside your accessibility checks so that after you change your form labels, you know the form still works end to end.
Questions people ask
Why does the placeholder text disappear when I type?
That is how the HTML placeholder attribute works. Browsers show it only while the field is empty and remove it on the first character. If you need a permanent field name, add a visible <label> instead.
Is it bad to use placeholder text instead of labels?
Yes. Placeholders vanish while typing, often have low contrast, and are not a reliable accessible name. Use a visible label and keep the placeholder for a short example, such as a format hint.
How do I keep a field label visible while typing?
Add a <label for="id"> above the input and give the input the matching id. The label sits outside the field, so it stays on screen. Most form builders have a setting to show labels.
Are floating labels okay for accessibility?
They can be, if the label stays visible after typing, is large enough and has enough contrast. Check that the shrunk label still reads clearly and that the field has a real label element.
Does WCAG allow placeholder text as the only label?
WCAG 2.2 expects fields to have labels or instructions (3.3.2) and a programmatic name (1.3.1, 4.1.2). A placeholder alone is a weak way to meet that, so most accessibility reviewers treat it as a failure. Use a proper label.
What colour should placeholder text be?
Aim for at least 4.5:1 contrast against the field background, as for other text. The default light grey in many browsers and themes is often too pale, so set it explicitly with ::placeholder.
Can FunnelGuard detect placeholder-only fields?
No. This needs an accessibility scanner or a manual review. FunnelGuard checks that your forms submit and that leads and tracking arrive, so it complements those tools.
Related issues
- PRF-305Form inputs without labels (placeholder only)Fix guide
- PRF-300Text colour contrast below 4.5:1Fix guide
- PRF-310Required fields indicated by colour onlyFix guide
- PRF-307Form errors shown only in red with no textFix guide
- PRF-309Errors not linked to fields (no aria-describedby)Fix guide
- PRF-313Form cannot be completed with keyboard onlyFix guide