- Article
- Intermediate
- 2 minutes read
- Reviewed August 4, 2026
Forms are one of the most important accessibility points on a WordPress website.
Contact, login, checkout, registration and search forms need clear labels, keyboard operation, understandable requirements and recoverable errors.
Programmatic Labels
Every form control needs an accessible name.
Use a visible <label> associated with its field whenever possible. Placeholder text is not a replacement because it disappears and may have insufficient contrast.
Group related radio buttons and checkboxes with fieldset and legend where appropriate.
Instructions and Required Fields
Explain formats and requirements before users submit.
Do not communicate required status only through colour or an asterisk without explanation.
Instructions should be connected programmatically to the relevant field when needed.
Validation
Validation can occur in the browser, server or both.
The server remains responsible for accepting valid input securely. Client-side feedback can improve experience but should not be the only protection.
Error Messages
A useful error identifies:
- What went wrong.
- Which field is affected.
- How to correct it.
Preserve entered values where safe. Move focus to an error summary or provide a live announcement when the workflow requires it.
Error Prevention
For important transactions:
- Show a review step.
- Allow correction.
- Explain consequences.
- Confirm destructive actions.
- Avoid short time limits.
- Provide a clear success state.
Autocomplete and Input Purpose
Use suitable input types and autocomplete tokens for common personal information.
This can reduce typing and support users with cognitive and motor disabilities.
Plugin Evaluation
Test the actual form plugin output, not only its builder interface.
Review labels, required-state markup, keyboard order, errors, confirmation, spam controls and third-party embeds.
Frequently Asked Questions
Is placeholder text an accessible label?
No.
Should errors appear only at the top?
A summary is useful, but fields should also receive specific associated messages.
Are CAPTCHA systems accessible?
Some create significant barriers. Use risk-based alternatives and provide an accessible fallback.
Continue Learning
Previous: [Keyboard Navigation and Focus](/resources/wordpress-manual/accessibility/keyboard-navigation-focus/)
Next: [Accessible Tables](/resources/wordpress-manual/accessibility/accessible-tables/)