W3C home > Mailing lists > Public > site-comments@w3.org > June 2003

Re: Question on labels

From: Susan Lesch <lesch@w3.org>
Date: Thu, 5 Jun 2003 18:02:46 -0700
Message-Id: <p05111b05bb0597329d7f@[]>
To: Charles McCathieNevile <charles@sidar.org>, site-comments@w3.org

Charles McCathieNevile wrote:

>I wondered why there is a label used to identify the form controls 
>such as the search field which does not provide any actual 
>labelling, just an accesskey which could be attached directly to the 
>form control in question?

Thanks for the idea, Charles. The labels were added in revision 4.716
when the tables were removed in favor of CSS. It's been a while but
think I copied them from WDG. Did I get them wrong?

 From http://www.htmlhelp.com/reference/html40/forms/label.html

     <INPUT TYPE=checkbox NAME=save VALUE=yes>
     Save user name and password in a cookie

Does this look better?

<form method="get" action="http://www.google.com/custom">
<div><a class="navlink" href="http://www.google.com"><img
src="Icons/Logo_25wht.gif" width="75" height="32"
alt="Google" /></a><br />
<input type="text" accesskey="E" size="15" tabindex="1"
id="inputField" name="q" maxlength="255" value="Search W3C" />
<input type="submit" accesskey="G" value="Go" tabindex="2"
id="goButton" name="sa" /><br />
<input type="hidden" name="cof"
<input type="hidden" id="searchW3C" name="sitesearch" checked="checked"
value="w3.org" /><input type="hidden" name="domains"
value="w3.org" /></div>

Susan Lesch           http://www.w3.org/People/Lesch/
mailto:lesch@w3.org               tel:+1.858.483.4819
World Wide Web Consortium (W3C)    http://www.w3.org/
Received on Thursday, 5 June 2003 21:02:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:15:32 UTC