wsg  

RE: [WSG] Minimal forms or marking up a search field

michael.brockington
Wed, 03 Mar 2010 00:46:44 -0800

 
 
_________________________

a) Submit button as label:

<form ...>
    <div>
       <input type="text" id="search" name="search" />
       <label for="search">
          <input type="submit" value="Search" />
       </label>
    </div>
</form>




>From a purely technical point of view, think what is supposed to happen when 
>you click on a <label> 
Then think what happens when you click on a <submit>, and ask yourself which 
one is supposed to happen?

Regards,
Mike

*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************