Here are some best practices examples.  The encapsulation method has
some side effects that any content in text form controls becomes part
of the label, which can be confusing to speech users.

http://html.cita.illinois.edu/nav/form


Jon


On Wed, Aug 19, 2009 at 2:04 PM, David Dorward<da...@dorward.me.uk> wrote:
>
> On 19 Aug 2009, at 19:35, Tom Livingston wrote:
>
>> On a slightly related topic, I have wrapped inputs inside of labels
>> for browser compatibility for the label clickability/focus issue
>> (based on some research some time ago), but have just read for the
>> first time recently, that this is not a good idea. Any thoughts?
>
>
> It isn't really a bad idea. It isn't as well supported as using the for
> attribute, so you should use that as well. Beyond that it is a matter of
> person taste. I find having the inputs outside the labels provides for more
> flexible styling options, YMMV.
>
> --
> David Dorward
> http://dorward.me.uk
>
>
>
> *******************************************************************
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: memberh...@webstandardsgroup.org
> *******************************************************************
>
>


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

Reply via email to