Accessibility · Names and labels

Invalid autocomplete attribute

A date of birth field on this page has autocomplete="birthday", which is not a valid token, so browsers cannot fill it in automatically.

How this page is built

The field below has autocomplete="birthday". The valid token for a date of birth is bday.

Why it matters

WCAG 1.3.5 asks that fields collecting personal information use valid autocomplete tokens. Browsers then fill them in, which helps people with motor or memory difficulties, and assistive tools can add familiar icons. An invalid token does nothing.

Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

How to check it

Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule autocomplete-valid.

How to fix it

Use a token from the HTML specification, here autocomplete="bday".

Back to all tests