In short: A good button has text that says what it does, a distinct appearance and an area you can press comfortably with a finger. According to WCAG 2.2, that area should be at least 24 × 24 pixels, and 44–48 pixels for comfortable use. Good form design means few fields, a single column, labels that are always visible outside the field and error messages that explain how to fix the problem. Also, don’t use placeholder text in place of a label.
Button and form design: the short version…
Buttons and forms are where a website turns visitors into customers: the quote form, the contact form, the add to cart button. So small mistakes here mean lost business. In this post I explain the basic rules of button design and form design, based on research and accessibility standards.
What makes a good button?
1. It should look like a button
Users should understand that they can click an element without having to think. A fill colour, distinct edges and enough padding achieve this. On the other hand, “buttons” that look like plain text and boxes that look like buttons but can’t be clicked mislead the user.
2. It should say what it does
Instead of “Submit”, “OK” or “Click here”, use text that describes the action: “Request a quote”, “Add to cart”, “Start the free analysis”. Users should understand what will happen before they press the button.
3. Distinguish primary and secondary buttons
Only one main action should stand out on a screen. The primary button should be filled and in the accent colour; secondary buttons (for example “Cancel”) should be outlined or text-style. Two buttons with the same weight leave the user undecided. In short, this is how visual hierarchy applies to buttons.
4. A large enough touch target

At level AA, WCAG 2.2 requires click targets to be at least 24 × 24 CSS pixels (or to have enough space around them). Level AAA recommends 44 × 44 pixels (W3C). Similarly, Apple recommends 44 points and Google’s Material Design system recommends 48dp. In practice, designing your buttons at least 44 pixels tall meets all of them. And if you use a small icon button, widen the click area by adding padding around the icon rather than enlarging it.
5. Design the states
| State | When? | Appearance |
|---|---|---|
| Normal | Default | Full colour, clear text |
| Hover | When the mouse is over it | Slight darkening or a shadow |
| Focus | When selected with the keyboard | A clear outline; never remove it completely |
| Active (pressed) | At the moment of clicking | A slight pressed-in feel |
| Disabled | When the action isn’t currently possible | Faded; explain why it is disabled |
| Loading | While the action is in progress | A spinner or text; prevents repeat clicks |
Removing the focus outline in CSS because it looks “ugly” is a very common mistake. Users who navigate with the keyboard can’t see where they are without it. I explained the basics of accessibility in my post on web accessibility.
Form design: what makes a good form?
1. Reduce the number of fields
The first rule of form design is simple: every extra field increases the chance that users abandon the form halfway. So for every field, ask: “Can I really not do the job without this information?” For a quote form, for example, a name, contact details and a short description are usually enough. You can discuss the rest in the first conversation.
2. Use a single column for form design
Of course, placing fields side by side saves space on screen. But this layout makes the eye zigzag and leads users to skip some fields. NN/g also recommends arranging form fields in a single column, from top to bottom (NN/g). The exception is short fields we logically read together (for example city and postcode).
3. Labels should sit outside the field and always be visible

The faded text inside a field (the placeholder) disappears when the user starts typing. As a result, users can’t remember what the field asked for, can’t check the form before submitting it and struggle to fix errors. That’s why NN/g clearly finds using a placeholder instead of a label harmful (NN/g). This also matters for accessibility. According to WebAIM’s 2026 report, 51% of the top one million home pages have unlabelled form fields.
4. Open the right keyboard
Form design continues in the HTML: choosing the right field types makes things much easier for mobile users. For example, type="email" opens a keyboard with the @ sign, and type="tel" opens a number pad. The autocomplete attribute also lets the browser fill in details such as name, address and phone number automatically.
5. Error messages should help solve the problem
- Show the error right next to the relevant field, not only at the top of the form.
- Don’t rely on red alone; indicate it with text and an icon too.
- Say what the error is and how the user can fix it: instead of “Invalid input”, “The phone number must have 10 digits, for example 0532 123 45 67”.
- Don’t delete what the user entered; the form shouldn’t empty itself after an error.
- Validate when the user leaves the field, but don’t show an error on every keystroke while they type.
6. Form design: mark required and optional fields
If most fields are required, mark the optional ones with “(optional)”. This is clearer than putting an asterisk on every required field.
7. Say what happens after submission
After the user submits the form, show a thank-you and the next step: “We’ve received your request. We’ll get back to you within 24 hours.” A page that silently reloads leads users to submit the form a second time.
Button and form design checklist
- Is there a single primary button on each screen?
- Does the button text describe the action?
- Are click areas at least 44 pixels?
- Is the focus outline clearly visible?
- Does every field have a visible label?
- Are error messages next to the field and solution-focused?
- Can you fill in the form one-handed on a phone?
Frequently asked questions
Does button colour increase the conversion rate?
Generalisations like “a red button converts better than a green one” are misleading. What matters is that the button stands out from the other elements on the page and that its text is clear. So choose the accent colour that creates the most contrast among your site’s colours.
Is a floating label a good choice for form design?
In this form design pattern, the label slides up when you select the field. It is better than a placeholder, but small, faded label text risks reducing readability. Even so, a simple, always-visible label is still the safest choice.
Is CAPTCHA a good choice from a form design perspective?
CAPTCHAs that make users solve puzzles both make the form harder and create accessibility problems. By contrast, solutions that use a hidden field (honeypot) or invisible verification block most spam without tiring the user.
This post is based on information valid as of November 2026.


