RE: label tag question

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 UTC