WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Best practices for identifying forms and their fields

for

From: Jared Smith
Date: May 6, 2013 11:58AM


On Mon, May 6, 2013 at 11:09 AM, Dave Merrill wrote:

> You're saying that a field's title WILL be read if no label is present, as
> in your search box example, right?

Correct.

> If so, then in the context of an
> accessibility review tool in a CMS, the logic would be:
> - If there's a label with text, show it
> - If not, and there's a title, show it, but suggest that there should be a
> label if that's workable
> - If there's neither, show both label and title as missing, suggesting that
> lable should be used if that's workable

Looks good to me. If there is visible label text, it should be
associated to the control. If not, then a title attribute can be used
to describe the control. If neither, then the function of the control
will be ambiguous.

Jared