medium10 pts · first answer countsaccessibilityariaforms
Linking a hint to an input
A password field has a visible hint: 'At least 12 characters'. How should the hint be connected so screen readers announce it?
<label for="pw">Password</label> <input id="pw" type="password"> <p id="pw-hint">At least 12 characters</p>
Discussion 0
Join free to post in the discussion.
Related questions
- Minimum contrast for body textUI/UX Designer
- Comfortable tap target size on mobileUI/UX Designer
- Contrast for large textUI/UX Designer
- Alt text for a decorative imageUI/UX Designer
- Removing focus outlinesUI/UX Designer
- Placeholder instead of a labelUI/UX Designer
- The four WCAG principlesUI/UX Designer
- WCAG conformance levelsUI/UX Designer