Re: Placeholder attribute an accessible name?

The HTML spec cannot be clearer and more explicit when it says:
"The placeholder attribute represents a short hint (a word or short
phrase) intended to aid the user with data entry when the control has
no value. ... The placeholder attribute should not be used as an
alternative to a label."
The accessibility naming rules  list attributes by order of
preference. The items that occur later in the list are less preferred
and simply meant as a fallback for AT users to help their users when
good markup is absent.
Developers tasked with making content accessible  should not
ordinarily delve into the depths of  the accessible name computation
algorithm and rely on  less preferred fallback mechanisms to compute a
name for an element.
Thanks,
-- 
Sailesh Panchang
Customer Success Strategist and Principal Accessibility Consultant
Deque Systems Inc
381 Elden Street, Suite 2000, Herndon,
VA 20170
Mobile: 571-344-1765

Received on Saturday, 22 October 2022 12:22:43 UTC