Quick Answer
An accessible website form needs understandable labels and instructions, controls that work with a keyboard, useful error feedback and a clear completion state. Use native form controls where they fit, associate labels and messages programmatically, and test the actual submitted and error states. A form’s visual appearance or an automated scan alone cannot establish that people can complete it.
Review the task from arrival to completion. Someone should know what information is needed, move through the controls, correct mistakes and understand the result.
Provide persistent labels and useful instructions
The W3C labeling guide describes associating labels with controls. In ordinary HTML, a label’s for value can match the input’s unique ID. A placeholder disappears during entry and should not carry the only explanation of a field.
State which information is required and explain unusual formats before an error occurs. Group related choices with appropriate structure, such as a fieldset and legend for a related set of radio buttons.
Use suitable input types and supported autocomplete values for common information about the user. The W3C input-purpose guidance explains that a broad type such as email and a specific input purpose serve related but different roles.
Connect errors to the affected field
Describe the problem and how to correct it. Keep useful entered information where possible. Use text in addition to color, and connect the message with the affected control.
This illustrative markup shows an email field after failed validation. It demonstrates the label and error relationships; a real implementation must update the error state and handle submission.
<label for="inquiry-email">Email address (required)</label>
<input id="inquiry-email" name="email" type="email"
autocomplete="email" required aria-invalid="true"
aria-describedby="inquiry-email-error">
<p id="inquiry-email-error">
Enter your email address, such as name@example.com.
</p>
After correction, clear the invalid state and obsolete message as appropriate. If several fields fail, an error summary can identify them and link to each control. The W3C notification guidance covers both field-level and overall feedback, including dynamically updated results.
Check the complete keyboard path
Move through the form in its reading order. Confirm focus stays visible and is not covered by sticky headers, banners or open panels. Use the expected keys for each control, including grouped choices and any custom picker.
Check the submit action, error-summary links, correction path and completion feedback. If a form appears inside a dialog, review the dialog’s opening, closing and focus behavior as well.
Prefer a suitable native control over a custom imitation when it meets the need. Custom controls require their own names, roles, states and keyboard behavior. Our roles and attributes guide explains why adding a role alone is insufficient.
Make the result understandable across layouts
Provide a clear result when submission succeeds or fails. For dynamic updates, implement a notification or focus approach suited to the interaction and verify it with assistive technology. Avoid a spinner that disappears without an understandable outcome.
Test narrow layouts and enlarged text with the mobile keyboard open where relevant. Check that help text, errors and the action remain reachable. Review any spam challenge, upload control or date picker as part of the form rather than assuming an external widget is usable.
Keep a practical form test record
Use authorized non-sensitive test data and record the form URL, version, browser, assistive technology, steps and result. Cover valid submission, missing required information, invalid input and recovery from an error.
Check delivery separately from interface completion. Our email authentication guide covers one part of the sending path. Our website accessibility service can assess the actual form and prioritize corrections with the development team.
Key Takeaways
- Associate persistent labels and messages with the correct controls.
- Explain errors in words and preserve a usable correction path.
- Test keyboard, assistive-technology and narrow-screen behavior.
- Verify interface completion and downstream delivery separately.
Frequently Asked Questions
Can placeholder text replace a label?
It should not carry the only field identification. Use a suitable persistent label and a programmatic association.
Should every error use an alert?
No. Choose feedback according to the interaction, timing and focus behavior. Verify that users learn what failed without repetitive or disruptive announcements.
Does a passing automated check prove the form is accessible?
No. Manual keyboard and assistive-technology checks are needed to assess the actual task, errors and completion behavior.

