Lesson 7 of 7 · Simulation
Forms people can fill in
Progress is saved on this device only. Keep it across devices with a free LFW account.
Curriculum0 of 7 done
Simulation
Fix a sign-up form so everyone can fill it in
A working copy of the real screen. Use it as you would the real one. Nothing you type leaves this page.
This exercise runs in your browser and needs JavaScript. The lesson text above covers the same steps.
Not done yet.
Labels that stay visible, instructions before the field, required fields marked in words and error messages that say how to fix the problem.
Notes
Step 1 of 7
Start here
Forms are how residents get things done: apply for a permit, register for a program, report a pothole, request records. A form that does not work with a screen reader, a keyboard or a phone is a closed counter window.
Many form problems are built into the site by developers. Editors add forms more often than they used to, through form builders in WordPress, Drupal and online form services. This lesson covers what you control.
Step 2 of 7
Every field needs a visible label
A label is the text that names a field: "First name," "Street address," "Date of birth." It must be visible and connected to its field, so a screen reader announces it when the field is selected. Form builders do the connecting when you use their label setting.
In the 2026 WebAIM Million, 51 percent of the top one million home pages had form fields missing labels.
Placeholder text is not a label. The gray hint inside an empty box disappears as soon as someone types, is often too faint to read, and is not reliably announced. Use a real label; use the placeholder only for an example, if at all.
Step 3 of 7
Instructions before the field
Put what people need to know before they start:
- the format: "Date of birth (MM/DD/YYYY)"
- the limits: "Upload a photo, JPG or PNG, up to 5 MB"
- what to have ready, at the top of the form: "You will need your account number from your water bill."
Instructions that only appear after an error make people fail first.
Step 4 of 7
Required fields, in words
Mark required fields with the word "required" in the label, or explain a symbol once at the top: "Fields marked with * are required." Never mark them only with color. Lesson 5 covers why.
Better still, ask only for what you need. Every optional field you remove is one fewer chance to get stuck.
Step 5 of 7
Errors that say how to fix them
WCAG 2.1 requires that errors be identified in text and, where possible, that the form suggest a fix. Most form builders let you edit error messages. Make each one name the field and the fix:
- Instead of "Invalid input," write "Enter your phone number with the area code, for example 703-555-0100."
- Instead of "Error," write "Choose a pickup date."
Keep what the person already entered when the form shows errors. Making them start over is a common reason people give up.
Step 6 of 7
Group related questions
A question with several choices, such as "Which days can you volunteer?", should be a group with its own question as the group's label. Form builders usually do this for radio buttons and checkboxes when you use their "question" or "legend" setting instead of a separate text line.
Step 7 of 7
Test it like a resident
Before you publish a form, fill it in twice:
- With only the keyboard. Tab moves between fields, Space checks boxes, arrow keys move between radio buttons, Enter submits. If you get stuck, so will others.
- On your phone. Check that labels are visible, the keyboard matches the field (numbers for a phone number), and the submit button is reachable.
Then submit it with a mistake on purpose and read the error.
Sources
- W3C, Understanding Success Criterion 3.3.2: Labels or Instructions
- W3C, Understanding Success Criterion 3.3.1: Error Identification
- W3C, Understanding Success Criterion 3.3.3: Error Suggestion
- W3C Web Accessibility Initiative, Forms Tutorial
- WebAIM, The WebAIM Million, 2026 report
Task
Your task at your institution
Quiz
4 questions. Choose one answer for each, then check them. Each answer shows its reason.
Show the answers
- B. No. It is placeholder text; the field needs a visible label. Placeholder text vanishes as you type and is often low contrast. A visible label stays and is announced to screen readers.
- B. With the label, before the field. People need the instruction before they type, not after they fail.
- C. Enter the date as MM/DD/YYYY, for example 04/26/2027. It names the field and says exactly how to fix it.
- B. Found on 51 percent of top home pages. Missing form input labels appeared on 51 percent of the top one million home pages.
You have done every lesson in Accessible Content Basics on this device. A free LFW account keeps it and gives you a dated completion record.