Give every field a visible label that is tied to it in the markup, use native form elements, make errors readable as text, and check the whole form works with only a keyboard. Those four things cover most of what goes wrong.
Accessible forms are also easier for everyone else: they autofill properly, work on phones, and say clearly what went wrong.
Labels
- Every input, select and textarea needs a label element. Tie them together with for and id, or wrap the input inside the label.
- A placeholder is not a label. It disappears when someone types and is often too faint to read.
- Keep the label visible. If the design truly has no room, hide it visually with CSS but keep it in the markup.
- Say which fields are required in words, not only with a color or an asterisk that is never explained.
A well-labelled field
<label for="email">Email address</label>
<input id="email" type="email" name="email" autocomplete="email" required aria-describedby="email-help">
<p id="email-help">We only use this to reply to you.</p>
aria-describedby points at the help text, so a screen reader reads it after the label.
Groups, types and autofill
- Wrap radio buttons and related checkboxes in a fieldset with a legend that asks the question.
- Use the right input type: email, tel, url, number, date. Phones show a matching keyboard.
- Add autocomplete values such as name, email, tel and street-address so browsers can fill the form in.
- Use a real button element for sending. A clickable div cannot be reached or pressed with the keyboard unless you rebuild all of that by hand.
Errors and status messages
- Write errors as text next to the field: "Enter an email address", not only a red border.
- Connect the error to its field with aria-describedby and set aria-invalid="true" on the field.
- After a failed submit, move focus to the first field with a problem.
- If you send the form with JavaScript, put the success or failure message in an element with role="status" so it is announced. Use role="alert" for errors that need attention now.
- Do not disable the submit button until the form is valid. A disabled button cannot explain what is missing.
Keyboard and appearance
- Tab through the form. The order should follow the visual order and every control should show a clear focus outline.
- Do not remove outlines without replacing them.
- Check text and border contrast, including placeholder and error colors.
- Make tap targets large enough to hit on a phone.
Spam protection that does not shut people out
Puzzle CAPTCHAs are a known barrier for people with visual or motor impairments. Prefer invisible checks. A honeypot hidden with display:none, tabindex="-1" and autocomplete="off" is skipped by screen readers and keyboards. FormTango filters spam on every form without a CAPTCHA by default. See honeypot vs CAPTCHA.
Test it
- Fill in and send the form using only the keyboard.
- Try it with a screen reader: VoiceOver on Apple devices, NVDA or Narrator on Windows, TalkBack on Android.
- Zoom the page to 200% and check nothing overlaps.
- Start from markup that already has labels: the contact form template or the HTML form generator.
Common questions
- Is a placeholder enough to label a form field?
- No. Placeholders vanish when someone starts typing and are not reliably read by assistive technology. Use a label element for every field.
- How do I announce a form success message to screen readers?
- Put the message in an element that is already in the page and has role="status", then change its text. Screen readers announce the change without moving focus.
- Are CAPTCHAs accessible?
- Many are difficult or impossible for some people to complete. Use invisible spam checks such as a honeypot and server-side filtering first, and choose a CAPTCHA with a non-visual option if you must have one.
Written by the FormTango team. Facts about other services were read from their own pages on November 22, 2026. Spotted something out of date? Tell us and we will fix it.