Placeholder used instead of a label: how to fix it
A placeholder is hint text that disappears when someone starts typing, so it cannot replace a proper label. Add a visible label tied to each field, and keep the placeholder only for an example of the format.
A placeholder is the grey hint text inside a form field, such as "Email address" or "Your name", that vanishes the moment you start typing. Many sites use it as the only description of the field, with no separate label. It looks tidy, but it causes real trouble for visitors and is flagged in accessibility audits against WCAG 2.2.
What the problem looks like
You will usually see a contact, quote, newsletter or checkout form where each box contains light grey text and nothing sits above or beside it. The signs are easy to spot once you know them:
- You click into a field and start typing, and the description disappears.
- The hint text is pale grey on white and hard to read.
- After filling in three fields, you cannot remember what the second one was for.
- A screen reader announces just "edit text" or something unhelpful for some fields.
Why it matters
Labels and placeholders do different jobs. A label is permanent and connected to the field in the page code. A placeholder is a temporary hint.
| Label | Placeholder | |
|---|---|---|
| Stays visible while typing | Yes | No |
| Clicking it puts the cursor in the field | Yes | No |
| Announced reliably by screen readers | Yes | Not always |
| Easy to read by default | Yes, you control the colour | Often too pale |
The people affected include screen reader users, people with memory or attention difficulties, people with low vision, and anyone who gets interrupted halfway through a form. It also hurts sales and trust: a visitor who is unsure what a field wants, or who submits the wrong thing and gets an error, often gives up. The relevant WCAG success criteria are 1.3.1 Info and Relationships, 3.3.2 Labels or Instructions, 4.1.2 Name, Role, Value, and often 1.4.3 Contrast (Minimum), because default placeholder colours frequently fall below the 4.5:1 ratio for text.
How to check your site for free
- Open each form and click into every field. If the only description vanishes when you type, it is a placeholder acting as a label.
- Press Tab to move through the form and check that each field is clearly described at all times.
- Click the words next to a field. If the cursor jumps into the box, a label is properly connected.
- Run a free checker such as the WAVE browser extension, axe DevTools, or Lighthouse in Chrome DevTools. They flag fields with missing labels, though they may not flag a field that has a placeholder only in the same way, so still do the manual check.
- If you can, try a screen reader: NVDA is free on Windows and VoiceOver is built into Mac and iPhone. Listen for whether each field is named.
If you are comfortable viewing page source, look for the field and see whether a <label> exists. Related issues are covered in form inputs with no labels. SiteMonday checks for this in its week 7 accessibility audit and lists affected pages in the ranked fix list.
How to fix it in general
The fix is to add a real, visible label to each field and connect it to the field. In plain HTML it looks like this:
<label for="email">Email address</label>
<input type="email" id="email" name="email" placeholder="name@example.com">
The for value on the label must match the id on the input. Then follow these guidelines:
- Put the label above the field, or beside it on wide screens. Above is usually easiest to read on phones.
- Keep the placeholder only for an example of format, such as a date or phone number pattern, or remove it.
- Make placeholder and label text dark enough to read. Aim for at least 4.5:1 contrast.
- Do not rely on
aria-labelalone when a visible label would work. Sighted users still need to see the text. - If the design needs a compact look, a "floating label" that shrinks above the field when you type can work, but test it carefully, since the label must stay visible and readable.
- Mark required fields in text, for example "(required)", not just with colour.
Fixing it on common platforms
Menu names change between versions and themes, so look for the words below rather than exact paths.
WordPress: Form plugins such as WPForms and Gravity Forms generally let you set a field label and, separately, a placeholder. In Contact Form 7 you write the label yourself in the form template. In the form editor, check that each field has a label filled in and not hidden. Some themes style forms to hide labels, so you may need to check theme settings or custom CSS. See the WordPress guide.
Shopify: Newsletter, contact and customer account forms live in your theme. Many themes show placeholders only in some sections. Look in the theme editor for form or newsletter settings, and if none exist, a developer may need to edit the theme's form code. See the Shopify guide.
Wix, Squarespace, Webflow, Elementor and HubSpot: Most of these have a field setting for a label and another for placeholder text, depending on your version and form type. In the form settings, look for options such as label, show label, or label placement, and make sure the label is switched on. In Webflow, add a Form Label element above each input. In Elementor, the Form widget has a label option for each field.
How to confirm the fix worked
- Reload the page and click into each field. The description should stay visible while you type.
- Click each label. The cursor should land in the right field.
- Zoom the browser to 200 percent and check nothing overlaps or disappears.
- Re-run WAVE, axe or Lighthouse and confirm no label errors appear.
- Test the form on a phone, including with autofill, and submit it once to confirm it still works.
How to stop it coming back
Most cases come from a form template, a theme, or a page builder default that was copied across the site. Fix the template first, so new forms start with labels. Add a simple check to your publishing routine: before any new form goes live, click into every field and type. Brief your designer or developer that placeholders are for examples only. Re-test after theme updates or redesigns, since styling changes can quietly hide labels again. Regular audits help too, such as the weekly calendar of checks that SiteMonday runs. Finding problems is one part, and fixing them stays with you or your developer.
Other issues that often appear alongside this one include icon buttons with no label, but start with your forms, since they are where visitors contact or buy from you.
Step by step for your platform
- Placeholder used instead of label on WordPress
- Placeholder used instead of label on Shopify
- Placeholder used instead of label on Wix
- Placeholder used instead of label on Squarespace
- Placeholder used instead of label on Webflow
- Placeholder used instead of label on Elementor
- Placeholder used instead of label on HubSpot CMS
Questions
Is a placeholder ever enough on its own?
Not for a field people must understand and fill in. A placeholder disappears when typing begins and is not reliably announced, so a visible label should always be present.
Can I hide the label and keep the placeholder for a clean design?
Hiding a label visually still leaves sighted users without a description once they type. A visible label, or a floating label that stays on screen, is the safer choice.
Does aria-label fix a placeholder-only field?
It gives screen readers a name, but sighted visitors still see nothing once they type. Use a visible label where possible and treat aria-label as a backup.
Why is placeholder text hard to read?
Browsers and themes usually set it in light grey, which often fails the 4.5:1 contrast ratio in WCAG. If you keep placeholders, darken them.
Will fixing this help my search rankings?
It is mainly about usability and accessibility. Clearer forms can improve completion rates, but it is not a direct ranking fix.
Do I need a developer to fix this?
Often not. Many builders and form plugins have a simple label setting. If your theme hides labels or the form is custom code, a developer may be needed.