W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2005

RE: label tag question

From: John Foliot - WATS.ca <foliot@wats.ca>
Date: Wed, 30 Mar 2005 14:45:37 -0500
To: "'Beheler Kim'" <beheler_kim@bah.com>
Cc: <w3c-wai-ig@w3.org>
Message-ID: <008201c53561$0ce48590$6601a8c0@bosshog>

Beheler Kim wrote:
> Hi everyone,
> I am new to the list serve so I'm sorry if this question has already
> been asked. I know that normally when there is text next to an
> input box there needs to be a label tag that associates the two.  For
> example:  <label for="fname">First Name </label> <input type="text"
> name="firstname" id="fname">.  Will this work the same with a textbox
> and button next to it?     

Welcome Kim... No need to apologize.  

The answer to your question: No.






What you *could* do is:

<label for="filterId" class="MAKE_IT_DISAPEAR_VIA_CSS">Search</label>
<input name="filterId" value="" id="filterId" type="text" />  <input
name="submitSearch" value="Search" type="submit" />  

...if the "MAKE_IT_DISAPEAR_VIA_CSS" requirement is there for "design"
issues (although I'm sure there would be at least one voice which
would argue that it should be visible to all users...)  

JF
-- 
John Foliot  foliot@wats.ca
Web Accessibility Specialist / Co-founder of WATS.ca
Web Accessibility Testing and Services
http://www.wats.ca   1.866.932.4878 (North America)
Received on Wednesday, 30 March 2005 19:45:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:19 GMT