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

Re: label tag question

From: Patrick H. Lauke <redux@splintered.co.uk>
Date: Thu, 31 Mar 2005 02:56:00 +0100
Message-ID: <424B58B0.8080601@splintered.co.uk>
To: w3c-wai-ig@w3.org

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 GMT

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