Making online forms people can fill in
Websites often ask people to fill in a form, to register, log in, comment or buy something. A clear, accessible form is easier for everyone to use.
Ask only for what you need
The GOV.UK Service Manual suggests starting with a list of every piece of information you need from people, and why you need it. This list is known as a question protocol. It gives a team a way to push back against unnecessary questions.
The W3C's forms tutorial makes a similar point. People usually prefer short, simple forms. When a form asks for irrelevant or excessive information, people are more likely to give up on it.
Ask clear questions
The Service Manual says closed questions are easier to answer than open ones. "Do you live at more than one address?" is a closed question. A series of simple questions can also be easier than one complex question. Where "I'm not sure" or "I do not know" is a valid answer, let people give it.
The GOV.UK Design System suggests asking one question on each page, and adding "(optional)" to the label of any optional field. It also advises asking for each piece of information only once in the whole service.
Label every field
Each field needs a label that describes what it is for. The W3C recommends linking the label to its field in the page's code, using the label element. Browsers then give people a larger area to click, and screen readers and other assistive technology can present the label with its field. Most people prefer or need labels they can see, and labels placed above fields reduce sideways scrolling on a phone.
Error messages that help
When someone makes a mistake, the GOV.UK Design System advises explaining what went wrong and how to fix it. Show the message next to the field, and list all the errors in a summary at the top of the page. Keep everything the person has already typed.
The Service Manual also suggests accepting answers in more than one format where you can. Its example is a National Insurance number, which a form should accept as either "QQ123456C" or "QQ 12 34 56 C".
Accessibility standards
The W3C publishes the Web Content Accessibility Guidelines, known as WCAG. Version 2.2 became a W3C Recommendation on 12 December 2024. It asks for labels or instructions wherever content needs input, and for any error found automatically to be described in text.
Public sector bodies in the UK need to meet the WCAG 2.2 AA standard, with some legal exceptions, and publish an accessibility statement. GOV.UK explains these rules in its guidance on accessibility requirements.
The personal data a form collects
The Information Commission (which took over from the ICO on 30 September 2026) asks organisations to collect only the personal data they need for their purpose. It also says organisations must not collect personal data on the off-chance that it might be useful later.
When an organisation collects personal data from someone, it must tell them at that time why it is using the data, how long it will keep it and who it will share it with. The Information Commission calls this privacy information, and asks for it in concise, clear language.
Useful links
- Structuring forms (GOV.UK Service Manual)
- Designing good questions (GOV.UK Service Manual)
- Question pages (GOV.UK Design System)
- Error message (GOV.UK Design System)
- Forms tutorial (W3C Web Accessibility Initiative)
- Labeling controls (W3C Web Accessibility Initiative)
- Web Content Accessibility Guidelines (WCAG) 2.2 (W3C)
- Understanding accessibility requirements for public sector bodies (GOV.UK)
- Principle (c): Data minimisation (Information Commission)
- The right to be informed (Information Commission)