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]
*******************************************************************

Reply via email to