Direct answer
A good address form lets the browser fill it: every field has a label, the correct input type and an autocomplete value, and errors appear next to the field that caused them.

Address forms: what to know
Each rule is listed with its source at the end of this page, read on November 12, 2026.
- Give every field a visible label tied to it with for and id, so a click on the label focuses the field.
- Set autocomplete on every field so the browser can fill the whole address, and use given-name, family-name, email and tel for the contact fields.
- Use type="tel" for the phone field so phones show a number pad.
- Use inputmode to pick the phone keyboard when a field keeps type="text" for custom validation.
- Keep the text of every field at 16px or larger on phones, because Safari on iOS zooms into smaller fields and does not zoom back out.
- Never block typing in a field; accept the input and show what is wrong instead.
- Trim the values before you validate them, because typing methods can add trailing spaces.
- Allow paste in every field.
- Show each error next to its field, focus the first error on submit, and set aria-invalid and aria-describedby.
- Use a placeholder only to show an example value, never in place of a label.
- Turn off spellcheck on codes and other technical fields.
The attributes an address form needs
| Field | Attribute | Why it matters |
|---|---|---|
First and last name | Attribute autocomplete="given-name" and "family-name" | Why it matters The browser fills both names |
Email | Attribute type="email" and autocomplete="email" | Why it matters The right keyboard and autofill |
Phone | Attribute type="tel" and autocomplete="tel" | Why it matters A number pad on phones |
Every field | Attribute A label tied with for and id | Why it matters A click on the label focuses the field |
Every field | Attribute 16px text or larger on phones | Why it matters iOS does not zoom into the field |
Put Address forms into practice
- Wrap the fields in one form element so Enter submits it.
- Give every field a label, the correct type and an autocomplete value.
- Leave the submit button enabled until the submit starts.
- Show errors next to their fields and focus the first one.
- Test autofill on a phone and on a desktop browser.
Address forms in four steps
The four steps, in the order you take them.

- Step 1: Label every field
- Step 2: Set type and autocomplete
- Step 3: Show errors in place
- Step 4: Test autofill on a phone
Caveats to keep in mind
- A disabled submit button on an incomplete form hides why the form will not send.
- Blocking letters in a number field gives no explanation for the missing keystroke.
- maximum-scale=1 in the viewport tag stops the iOS zoom, but it also blocks the pinch zoom people with low vision need.
- On Windows, a native select needs an explicit background color and text color, or dark mode can make it unreadable.
Steal this workflow
Run this guide in your own assistant. The prompt carries the guide link and the workflow summary, so the assistant can adapt it to your project.
Read the guide "Address form design: autofill, the right keyboard and errors next to the field" at https://better-design.com/blog/address-form and help me apply it to my project.
A good address form lets the browser fill it: every field has a label, the correct input type and an autocomplete value, and errors appear next to the field that caused them.
Start by asking what I am building and which tools I use. Then walk me through the workflow step by step, adapted to my answers.Claude and ChatGPT open with the prompt filled in. Gemini copies the prompt to your clipboard first, so paste it when the app opens.
Questions
How do you make an address form autofill?
Set the autocomplete attribute on every field, give each field a label, and use the correct input type, such as tel for the phone number.
Why does my form zoom in on iPhone?
Safari on iOS zooms into any focused field whose text is smaller than 16px. Set the field text to 16px or larger on small screens.
Can a coding agent apply these form rules?
Yes. Put these rules in the agent's instructions before it builds, then ask it to check the rendered screen against each one.
Where these rules come from
Each fact comes from Better Design's form guidance, the same guidance its MCP server gives coding agents, read on November 12, 2026.
Related
Build the interface in your own code instead
A coding agent such as Claude Code, Cursor or Codex can build these screens in your own code. Better Design gives that agent a design system, interface principles and review rules, so the result follows rules like these and looks designed.