WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Léonie Watson
Date: Nov 9, 2012 12:32PM


Angela French wrote:
" Is the use of a <label> tag to identify association with a text field and
the simultaneous use of the title attribute in the <input> tag redundant,
such that it should be avoided? In other words, would a screen reader say
the word twice?"

Most screen readers don't acknowledge the title attribute by default,
although they can be configured to do so. VoiceOver is the exception I
think.

Assuming the label is visible, it's worth asking what value the title
attribute brings in this case?


Léonie.

-----Original Message-----
From: <EMAIL REMOVED>
[mailto: <EMAIL REMOVED> ] On Behalf Of Angela French
Sent: 09 November 2012 18:22
To: 'WebAim Forum ( <EMAIL REMOVED> )'
Subject: [WebAIM] Is use of <label> and title redundant?

Hello,
Is the use of a <label> tag to identify association with a text field and
the simultaneous use of the title attribute in the <input> tag redundant,
such that it should be avoided? In other words, would a screen reader say
the word twice?

Example:

<label for="searchfield" class="offscreen"> Search</label><input
id="searchfield" type="text" title="Search">

Thank you,


Angela French
Internet Specialist
State Board for Community and Technical Colleges
360-704-4316
<EMAIL REMOVED>
http://www.checkoutacollege.com/

messages to <EMAIL REMOVED>