Johan – what you are describing is the correct usage in that scenario.
Thanks, Tatham Oddie <callto:+61414275989> call:+61414275989, <callto:+61280113982> call:+61280113982, <skype:tathamoddie?call> skype:tathamoddie, <msnim:[EMAIL PROTECTED]> msn:[EMAIL PROTECTED], <http://tatham.oddie.com.au/> tatham.oddie.com.au From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Douma Sent: Thursday, 16 October 2008 11:23 PM To: [email protected] Subject: Re: [WSG] labels as input wrappers + <h6> in place of legend I've always used label arount input fields <label>text: <input type="text" /></label> without the for="" attribute. I've never had problems with it, and I don't think I've ever seen any recommendation against it. Johan Douma [EMAIL PROTECTED] 2008/10/16 David Dorward <[EMAIL PROTECTED]> Jason Grant wrote: > Ok you got both of these quite wrong for following reasons: > > In the first instance you shouldn't use <b> or <br /> at all. > In the second instance you should not wrap <input> into <label> as the > <label> should quite clearly be used for denoting a label of an input > field and not the input field itself. Not so: "When [the for attribute is] absent, the label being defined is associated with the element's contents." """ <LABEL> First Name <INPUT type="text" name="firstname"> </LABEL> """ -- http://www.w3.org/TR/html4/interact/forms.html#h-17.9.1 -- David Dorward http://dorward.me.uk/ ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
