NeovaPlatform SEO Tingkat Lanjut

Kolom formulir memiliki lebih dari satu label

Di Neova Berjalan dari crawl itu sendiri: tidak ada yang perlu diatur.

Aturan terakhir ditinjau 17 Oktober 2026 · Panduan diperbarui 7 Juli 2026

Teknologi bantu bisa membaca kolom dengan 2 label atau lebih secara berbeda-beda, sehingga pengguna mungkin hanya mendengar sebagian label. Ini sendiri bukan kegagalan WCAG.

Yang Bisa Anda Lakukan

Pertahankan satu elemen label pada kolom dan gabungkan teks label lainnya ke dalamnya.

Mengapa Neova Menandainya

  • Pembaca layar menangani kolom dengan 2 label atau lebih secara berbeda, dan sebagian hanya membaca salah satunya.
  • Pengguna bisa hanya mendengar sebagian instruksi lalu mengisi kolom dengan salah.
  • Ini bukan kegagalan WCAG tersendiri, tetapi mudah diperbaiki.

Sumber

Panduan Lengkap

Bagian ini masih dalam bahasa Inggris untuk sementara.

Form fields do not have duplicate labels: how to fix it
TL;DR

One control, one label. When two <label> elements point at the same field, a screen reader has to pick a winner, and the name it announces may not be the one your sighted users see.

This check flags a single form control that ends up wired to more than one label, usually because two for attributes share the same id. A screen reader then reads out a name the user did not expect, or concatenates both, and the field's purpose gets muddy. The SEO angle is real but indirect: forms that confuse assistive tech get abandoned, and a broken contact or lead form is a conversion leak that no amount of ranking fixes.

Why Two Labels Break Assistive Tech

The accessible name of a control is computed once, from a defined order of sources. When two <label> elements legitimately point at the same field, the browser has to reconcile them, and the result is not consistent from one screen reader to the next. Some readers announce the first label, some the last, some join them into a run-on string that no longer reads like a field name. A sighted user, meanwhile, sees whatever the layout shows, so the spoken experience and the visual experience drift apart. That drift is the real damage: a user filling in a form by ear cannot trust that "the email field" is actually the field they think it is. Duplicate labels also tend to travel with other problems, most often a reused id, which is invalid HTML and can knock scripting and styling sideways at the same time.

A Real Failure, and the Fix

Here is the pattern that trips this rule constantly. A designer adds a floating label and a "helper" label to the same email field, both associated by for:

<label for="email">Email address</label>
<label for="email">We'll never share it</label>
<input type="email" id="email" name="email">

Both labels resolve to #email, so axe-core reports a duplicate. Fix it by keeping exactly one label and demoting the second string to a description tied with aria-describedby:

<label for="email">Email address</label>
<input type="email" id="email" name="email" aria-describedby="email-hint">
<p id="email-hint">We'll never share it</p>

Now the name is "Email address" and the helper text is announced afterward as a description, not as a competing name.

Where Duplicate Labels Come From

Source of the Duplicate Why It Happens The Clean Fix
Two <label for> on one id Helper text marked up as a second label Move helper text to aria-describedby
Wrapping label plus for label Input nested in a label and targeted externally Keep one association method only
Duplicated markup from a loop Template renders the label block twice De-dupe the partial, unique ids per row
label plus aria-label Two naming sources compete Drop the aria-label, trust the visible label

How to Detect It

  1. axe DevTools: run the browser extension on the page; the "Form elements must not have multiple label elements" result lists each control and highlights every label pointing at it.
  2. Lighthouse: open Chrome DevTools, run the Accessibility audit, and look under the failing "Names and labels" group for the affected fields.
  3. WAVE: load the WebAIM WAVE extension and check the Structure/labels panel; multiple label icons stacked on one input are the tell.
  4. Manual pass: search your rendered HTML for repeated for="…" values, since two identical for targets are the most common trigger.

How to Fix It

Pick one association per field. If the label is visible text, use <label for> matched to the input's id and nothing else. If you truly need a wrapping label, do not also add a for label to the same control. Turn any secondary sentence, such as format hints or reassurance copy, into a paragraph linked by aria-describedby. Then confirm every id on the page is unique, because a reused id will silently pull a second label into a field. Related traps live in IDs used in ARIA and labels must be unique and in form input elements must have labels.

One pattern deserves special attention because it fools people: hiding a "second" label with a visually-hidden utility class. Teams do this to keep an on-screen floating label while also providing a screen-reader-only description, and they leave both associated to the field. Visually hidden is not the same as programmatically removed, so both names still feed the accessible-name calculation and the duplicate persists. If you want screen-reader-only guidance, attach it with aria-describedby rather than as a second label. And if a component library is generating the markup, fix it at the template level, because a duplicated partial will reintroduce the problem on every field it renders, turning one warning into dozens across a long form.

Frequently Asked Questions

Is It Ever Valid to Attach Two Labels to One Field?

The HTML spec technically allows a one-to-many relationship, but browser and screen reader support for it is inconsistent, which is exactly why axe-core flags it. Give each field one label and you sidestep the guesswork.

How Do I Keep Helper Text Without Failing This Check?

Mark helper text as ordinary content and link it with aria-describedby on the input. It gets announced as a description after the name, so it never competes to be the label.

Does Hiding One Label With CSS Fix It?

No. Setting display:none on a label while leaving its for association intact can still register the duplicate. Remove the association, not just the pixels.

Which WCAG Criterion Does This Map To?

It supports Success Criterion 3.3.2 Labels or Instructions (Level A), which requires every input to carry a clear, programmatically associated label. For the broader picture see form inputs need visible labels.

Need a full technical audit?

Neova runs deep crawls that catch issues like this across your whole site.

Temukan Ini di Situs Anda Sendiri

Neova menjalankan pemeriksaan ini dan semua pemeriksaan lain di setiap crawl, lalu menuliskan perbaikannya sebagai tiket untuk tim Anda.

  • Aplikasi desktop untuk Mac, Windows, dan Linux
  • Semua 696 pemeriksaan, masing-masing dengan sumbernya
  • Search Console dan Analytics 4, terhubung hanya-baca
  • Tiket ke Jira, Linear dan Asana

Unduh Neova Paket Desktop Free, atau Solo gratis selama 14 hari, tanpa kartu.

Semua pemeriksaan Aksesibilitas · Panduan · Pustaka pemeriksaan

Ditulis oleh Neova Labs · Kembali ke Pustaka pemeriksaan