EN, Change language
English
UK-083

Number fields use inputmode="numeric", not input type="number", unless research shows a need.

GOV.UK Design System · Every UK public sector website

Why it matters to users

Fields of type number can change their value when someone scrolls, drop leading zeros and are announced poorly by some screen readers.

How to fix it

Use <input type="text" inputmode="numeric"> for numbers such as reference numbers, keeping type="number" only where user research shows a need. Then scan again.

How we measure it

Question fields of type number. Research is not visible, hence partial. Partly measured: we measure what the public pages show of this rule; the rest needs a review.

Its official source

Related rules

Numeric inputs use inputmode · UK-083 | xfix