Form elements should not use title attribute as the only accessible name

labels-and-names/label-title-only · WCAG 4.1.2 · Level A

Form elements should not use title attribute as the only accessible name.

The title attribute is unreliable as a label because it only appears on hover/focus (not visible to touch users) and is often ignored by assistive technologies. Use a visible <label> element, aria-label, or aria-labelledby instead. Title 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.0