Did you know that the text inside a form field isn't necessarily a label?
You’ve probably seen forms that look like this:

The words inside the field are called placeholder text. Placeholder text can provide a hint or example, but it shouldn’t replace a clear label that identifies the purpose of the field.
What’s the Problem?
Placeholder text often disappears as soon as someone begins typing.
Imagine starting to complete a long form and then being interrupted. When you return, the text you entered may still be there, but the instructions that appeared inside the fields are gone.
Now you have to remember what each field was asking for. This can create additional barriers for people with cognitive disabilities, memory limitations, or low vision. Placeholder text may also create problems when it isn’t properly communicated to assistive technology.
Give Every Field a Clear Label
Instead of putting the only description inside the field:

Provide a visible label that remains available:

The label identifies what information belongs in the field before, during, and after the user enters information.
Use Placeholder Text for Hints, Not Labels
Placeholder text isn’t always bad.
It can be useful for providing a short example or hint when additional information will help the user complete the field.
For example:

In this example, Email address is the label. The placeholder, user.name@example.gov, provides an example of the information the user should enter.
If instructions are important for successfully completing the field, however, don’t rely on placeholder text alone. Provide clear instructions where they remain available to the user.
Keep Labels Visible
Visible labels benefit more than screen reader users.
They help people:
A form shouldn’t become harder to understand simply because someone started filling it out.
Try It Yourself
The next time you create or review a form, look at each field before and after entering information.
Ask yourself:
If you answer no to any of these questions, you may have identified an accessibility issue.
Key Takeaways
Placeholder text can provide a useful hint or example, but it shouldn’t replace a form field’s label.
- Keep labels visible. Use placeholder text only for supplemental information.
A simple test can help: enter something into the field. If you can no longer tell what the field is asking for, the placeholder was probably doing a job that belongs to the label.
For more information on creating accessible web-based forms, visit WebAIM: Creating Accessible Forms (Web) and WebAIM: Accessible Forms in Acrobat.
