That syntax is fine. The difference is that, in wrapping the input with the label, the label is implicit, and so the for attribute is unnecessary. When using the for="" syntax, the label is explicit. Both are acceptable but some screen-readers don't handle the implicit syntax well.
One reason for using the implicit syntax is for styling. In some situations, it may be easier to define CSS rules for a label which wraps the input. On Sun, Jan 25, 2009 at 4:40 PM, Miles J <[email protected]> wrote: > > I do not believe that is possible unless you build the elements > yourself without the helper. > > Is there a reason your wrapping it like that? I do believe that is > incorrect syntax. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
