WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Is use of <label> and title redundant?

for

From: Patrick H. Lauke
Date: Nov 20, 2012 12:31PM


On 20/11/2012 19:08, Sailesh Panchang wrote:
> Patrick,
>> Though yes, it's stated at the end of that part
> Please refer to the description for H65.
> And I can only reiterate:
> Title is simply not the recommended technique in the circumstance.

Maybe splitting hairs here, but:

yes, the description for H65 states

"The objective of this technique is to use the title attribute to label
form controls when the visual design cannot accommodate the label (for
example, if there is no text on the screen that can be identified as a
label) or where it might be confusing to display a label"

But, does this imply that if there IS in fact text on the screen that
can be identified as a label, and the technique is used anyway, that
it's automatically a failure of 3.3.2? I'd argue that no, it doesn't.
It's certainly a stupid approach (if the text is already visible, just
mark it up as a label...simple), but even stupid code can still fulfill
the requirements of the SC.

If title is sufficient in situations when there is NO visible text, how
can you surmise that it's all of a sudden NOT sufficient when there IS text?

> Not marking up visible text as a label and inserting a title attribute
> is a failure of SC 3.3.2.

I think you're inferring this failure, unless I'm missing this being
explicitly mentioned anywhere.

P
--
Patrick H. Lauke