NeovaNền tảng SEO chuyên sâu

Giá trị thuộc tính autocomplete không hợp lệ

Trong Neova Chạy ngay từ lần crawl: không cần thiết lập gì.

Quy tắc được rà soát lần cuối ngày 17 tháng 10 năm 2026 · Hướng dẫn cập nhật ngày 1 tháng 7 năm 2026

WCAG 1.3.5 cấp độ AA yêu cầu xác định được mục đích của các trường hỏi thông tin về khách truy cập. Trình duyệt và công nghệ hỗ trợ không dùng được giá trị mà chúng không nhận ra.

Bạn có thể làm gì

Dùng on, off hoặc một token autofill hợp lệ theo chuẩn HTML, như email hoặc postal-code.

Vì sao Neova đánh dấu

  • Trình duyệt và trình quản lý mật khẩu chỉ tự điền các giá trị chúng nhận ra, nên token không hợp lệ làm hỏng tính năng tự điền.
  • Người khuyết tật vận động hoặc trí nhớ dựa vào tự điền để khỏi phải gõ.
  • WCAG 1.3.5 (cấp độ AA) yêu cầu xác định mục đích của các ô thông tin cá nhân bằng token autofill của HTML.

Nguồn

Hướng dẫn đầy đủ

Phần này tạm thời còn bằng tiếng Anh.

Element Code: PE-032

TL;DR: The HTML autocomplete attribute tells the browser what a form field is for so it can autofill it correctly. Missing or wrong values mean broken autofill, slower checkouts, and failed accessibility audits. Use the standard token that matches the field, like email, given-name, or cc-number, and only turn autocomplete off where it genuinely does not belong.
Check ID
PE-032
Category
Performance / UX
Standard
WHATWG HTML
WCAG
1.3.5
Fix Effort
Low

What the Autocomplete Attribute Does

The autocomplete attribute is a hint you put on an input, textarea, or select that tells the browser exactly what kind of data the field expects. When it is right, the browser can offer to fill in a saved email, name, address, or card number with one tap. When it is missing or wrong, the browser guesses, and its guesses are often bad: it drops the wrong value in the wrong box, or offers nothing at all.

The values are not free text. There is a defined set of tokens in the WHATWG HTML standard: name, given-name, family-name, email, tel, street-address, postal-code, cc-number, cc-exp, one-time-code, and many more. You can also prefix with a scope like shipping or billing, for example autocomplete="shipping postal-code". Use the real tokens. Made up values do nothing useful.

This check flags fields where autocomplete is used incorrectly: a nonstandard value, the wrong token for the field, or autocomplete disabled where autofill would genuinely help the user.

Why It Matters, Including for SEO

Autocomplete is not a ranking factor, so let me be honest about the mechanism. It matters because it moves the numbers Google increasingly cares about: real user experience and conversion.

  • Speed and friction. Correct autocomplete lets a mobile user fill a checkout in seconds instead of thumb typing an address. Less friction means fewer abandoned forms. On mobile, where typing is painful, this is one of the highest leverage form fixes there is.
  • Accessibility and compliance. WCAG 2.1 success criterion 1.3.5, Identify Input Purpose, specifically requires the autocomplete attribute on fields collecting user information. Miss it and you fail an accessibility audit, which is a legal and reputational risk, not just a nice to have.
  • Conversion, which feeds everything. Faster, less error prone forms convert better. Better engagement and completion signals are exactly what you want feeding your quality and behavior metrics.

Right Token, Wrong Token

CORRECT autocomplete="email" you@example.com offered instantly One tap. Filled. Checkout continues. WRONG autocomplete="your-email" nonstandard token, browser ignores No autofill. User types it by hand.

The Tokens You Will Use Most

Field Correct Token Common Mistake
Email email e-mail, your-email
First name given-name firstname, fname
Last name family-name lastname, surname
Phone tel phone, telephone
Postal code postal-code zip, zipcode
Card number cc-number card, ccnum
One time code one-time-code left off, so OTP autofill fails

When to Turn It Off

Sometimes off is the right answer. Use autocomplete="off" on fields where saved data would be wrong or a privacy concern: a shared kiosk, a one time verification field you do not want cached, or a search box where offering the last address makes no sense. Do not blanket disable autocomplete across a whole checkout because you think it looks tidier. That is a self inflicted wound on conversion. Off should be a deliberate exception, not the default.

One real gotcha: browsers increasingly ignore autocomplete="off" on login and password fields because password managers override it for user safety. Do not fight that. Let password managers do their job.

How to Detect the Problem

  1. Manual autofill test. Save an address and card in your browser, then run through your own forms. Anything that does not offer to fill, or fills the wrong box, has a token problem. This five minute test catches most issues.
  2. Accessibility audits. Run Lighthouse in Chrome DevTools or axe DevTools. Both flag inputs missing a valid autocomplete under WCAG 1.3.5. Lighthouse has a specific audit for this.
  3. Crawl and extract. In Screaming Frog or Sitebulb, use custom extraction to pull every input and its autocomplete value across the site, then scan for missing or nonstandard tokens at scale.
  4. DevTools console and validators. The HTML validator and browser console warnings will call out obviously invalid values.
  5. Analytics on form fields. If a specific field has high abandonment or correction rates, a bad autocomplete token is a prime suspect.

How to Fix It, Step by Step

  1. List every form field that collects user data: contact forms, checkout, signup, account settings.
  2. Map each field to its standard token from the WHATWG list. Match by meaning, not by your internal field name.
  3. Add scope where a form has both addresses, for example autocomplete="shipping street-address" and autocomplete="billing street-address", so the browser fills the right block.
  4. Replace nonstandard values. Swap your-email for email, zip for postal-code, and so on.
  5. Set off only where justified, and document why so nobody re-enables it blindly.
  6. Retest with real saved data and rerun Lighthouse to confirm the field level warnings are gone and autofill works.

Do This, Not That

DO
  • Use the exact WHATWG standard tokens like email and given-name
  • Add shipping or billing scope when a form has two addresses
  • Test autofill with real saved browser data on mobile
  • Include one-time-code so OTP autofill works
  • Run Lighthouse or axe to confirm WCAG 1.3.5 passes
DON'T
  • Invent tokens like your-email or fname that browsers ignore
  • Blanket disable autocomplete across an entire checkout
  • Rely on autocomplete="off" to stop password manager fill
  • Use your internal field name as the token
  • Ship forms without ever testing real autofill

What Good Looks Like

Every data collecting field carries the correct standard token, address fields are scoped where needed, autofill works in one tap on mobile, off is used only where genuinely warranted, and Lighthouse reports a clean pass on Identify Input Purpose. Users breeze through your forms and your completion rate shows it.

FAQ

Is the Autocomplete Attribute a Google Ranking Factor?
No, not directly. It improves form completion, mobile experience, and accessibility compliance. Those improve conversion and user experience signals, which is where the real value sits. Treat it as a UX and compliance fix, not a ranking trick.
Where Do I Find the Full List of Valid Tokens?
The authoritative list is in the WHATWG HTML standard under the autofill section, and MDN mirrors it in readable form. Stick to those tokens exactly. Anything not on the list is treated as no hint by the browser.
Should I Disable Autocomplete on Password Fields for Security?
Generally no. Modern browsers and password managers often ignore autocomplete="off" on credential fields on purpose, because letting a password manager fill a strong unique password is safer than forcing users to type or reuse weak ones.
How Do I Handle Two Address Blocks on One Page?
Scope them. Prefix the tokens with shipping or billing, such as autocomplete="billing postal-code" and autocomplete="shipping postal-code". The browser then fills each block with the right saved address instead of mixing them.

Want a Human to Check This for Real?

I audit these edge cases by hand across whole crawls, not one URL at a time. If this check is flagging things you cannot explain, let me look.

Tìm lỗi này trên trang của bạn

Neova chạy mục kiểm tra này và mọi mục khác trong mỗi lần crawl, rồi viết cách sửa thành ticket cho nhóm của bạn.

  • Ứng dụng máy tính cho Mac, Windows và Linux
  • Tất cả 696 mục kiểm tra, mỗi mục kèm nguồn
  • Search Console và Analytics 4, kết nối chỉ đọc
  • Ticket sang Jira, Linear và Asana

Tải Neova Gói Desktop Free, hoặc dùng thử Solo miễn phí 14 ngày, không cần thẻ.

Tất cả mục kiểm tra Khả năng truy cập · Hướng dẫn · Thư viện mục kiểm tra

Do Neova Labs biên soạn · Quay lại Thư viện mục kiểm tra