Forms are where visitors become customers – or give up. Most form problems are not technical but design problems. Combine this page with the technical side in HTML form validation and a secure PHP contact form.
Fewer fields
For each field, ask: what do we do with this answer? If the answer is “nothing yet”, remove it. A phone number, company name or “how did you find us?” can often wait.
Layout and labels
- One column: people read forms top to bottom.
- Labels above the field, always visible – placeholders are not labels.
- Group related fields, such as address details.
- Logical order: name before email, street before city.
Help instead of errors
- Explain formats before people type: “Four digits, for example 2000”.
- Validate after a field is left, not while typing.
- Error messages next to the field, in plain language, saying how to fix it.
- Never clear the form after an error.
Mobile-friendly inputs
| Field | Use |
|---|---|
type="email", autocomplete="email" | |
| Phone | type="tel", autocomplete="tel" |
| Numbers like postcodes | inputmode="numeric" |
| Dates | type="date" |
Trust and privacy
- Say why you need sensitive information.
- Link to your privacy statement near the button.
- No pre-ticked newsletter boxes (see GDPR).
After submitting
Show a clear confirmation: what happens now, and when. Send a confirmation email for important requests. A button text like “Send my question” (see call-to-action buttons) and a friendly thank-you page complete the experience.
Frequently asked questions
Should I mark required or optional fields?
Ideally ask only for required information, and mark the few optional fields as “(optional)”. That is clearer than a sea of asterisks.
Are multi-step forms better?
For long forms, yes: splitting them into steps with a progress indicator feels lighter. For short forms, one page is best.