Write-ups of lessons usually grow long quickly. Ours about form design stays trimmed on purpose: only lessons we still act on made the cut.
The list
- Preserving each value someone entered whenever the form fails spares people from filling it in from scratch.
- Validating a field when the user leaves it, instead of while they are still typing, avoids nagging people about an unfinished address.
- A
labelelement remains readable as someone fills in the field, tells screen readers what the field expects and gives a wider tap area.