Re: label tag question

Charles McCathieNevile wrote:

> When Joe Clark did some testing of this question he found out what some  
> people had been saying was true. You are at least somewhat mistaken, in  
> that many techniques for hiding stuff with CSS hide it from assistive  
> technologies as well.

Sorry, should have been more specific...was just meaning display:none, 
but wrote it too generalised. I know the "off-left" technique works 
better, but didn't want to get into a whole CSS discussion. Good to 
clarify though.

> ..."(although I'm sure there would be at least one voice which would 
> argue  that it should be visible to all users...)"...
> 
> Mine is just such a voice. Although the close proximity of a button  
> labelled search will do it for most users, clear labelling is a great  
> thing. Please leave the label visible.

Belt, braces and superglue approach:

<form action="..." method="...">
     <fieldset>
         <legend>Search</legend>
         <label for="searchterm">Search for:</label>
         <input type="text" name="q" id="searchterm" value="" />
         <input type="submit" value="search" />
     </fieldset>
</form>

;-)

-- 
Patrick H. Lauke
_____________________________________________________
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com

Received on Thursday, 31 March 2005 01:54:33 UTC