Form elements should not use placeholder attribute as the only accessible name
labels-and-names/label-placeholder-only · WCAG 3.3.2 · Level A
Form elements should not use placeholder attribute as the only accessible name.
The placeholder attribute disappears as soon as the user begins typing, making it unreliable as a label. Users may forget the field's purpose mid-entry, and placeholders are often rendered with low contrast. Use a visible <label> element, aria-label, or aria-labelledby instead. Placeholder can supplement a label but should not replace it.
Scan a page or repo for issues like this · All rules
Introduced in @accesslint/core v0.8.8