Contact forms everyone can use: labels, contrast and clear errors

3 min readVerifiedHive team

A contact form some visitors can't read or fill in loses customers quietly. Here's what makes a form work for everyone, and how to check yours in ten minutes.

Every message your form doesn't let through is a customer you never hear from. Most form problems are invisible to the owner: faint text, a field with no label, an error shown only as a red outline. The people they stop simply leave.

The rules below come from WCAG, the standard for accessible websites. They help everyone, not only people with disabilities: a customer on a phone in the sun has the same trouble with faint gray text.

Labels people can see

  • Put a visible label above every field. Placeholder text inside the box disappears as soon as someone types, and it's usually too faint to read.
  • Say in words which fields are optional, or which are required. A color or a star on its own isn't enough.
  • Tell the browser what each field is, such as name, email or phone, so it can fill them in. That saves typing for everyone, and a lot of effort for people who find typing hard.

Text people can read

  • Contrast: WCAG asks for at least 4.5 to 1 between text and its background, and 3 to 1 for the borders that show where a field is (WCAG 2.1).
  • The usual failures are light gray hints on a white form, and white text on a mid-tone brand color.
  • Size: keep the text at least as large as the rest of the page, and make sure the form still works when someone zooms in.

Errors that explain themselves

  • Say what's wrong and how to fix it, next to the field: "Enter an email like name@example.com", not "Invalid input".
  • Don't rely on red alone. Many people can't tell red from green.
  • Keep what the person typed when the form comes back with an error, so nobody types a long message twice.

A ten-minute check

  1. Fill in the form with only a keyboard: Tab to each field, Space to tick a box, Enter to send.
  2. Zoom the page to 200 percent and see whether anything is cut off.
  3. Send it empty and read the errors out loud. Do they say how to fix the problem?
  4. Check the text, the hints and the field borders with a contrast checker.
  5. Send a real test message and make sure it arrives where you'll see it.

For the rest of a page, what an automated accessibility check finds shows what a tool catches and what still needs a person. For what to put around the form, trust signals customers look for covers what shows people a business is real before they get in touch.

How VerifiedHive forms handle it

The forms on a VerifiedHive business page, and the copy you can place on your own website, follow these rules:

  • Every field has a visible label tied to it, and optional fields say "(optional)".
  • Name, email and phone fields tell the browser what they are.
  • Errors appear in words under the field they belong to, screen readers read them with the field, and what was typed stays.
  • You choose the background and the button color. The text, the hints and the field borders are picked to stand out against your background: at least 4.5 to 1 for text and 3 to 1 for borders.
  • Every message lands in one inbox. Our post on forms and one inbox shows how it works.

Forms show on your page while Verified or HoldFast is on.

Keep reading

See all posts