[html5] List Types

Renatho Rosa renatho.rosa at grifotecnologia.com.br
Tue Oct 26 05:34:14 PDT 2010


I prefer separate tags, because is more easily to style

<label for="full_name">Full Name:</label>
<input name="full_name" id="full_name" type="text" />

The "for" of label is linked with "id" of input, and not the "name"

--
Renatho De Carli Rosa
www.grifotecnologia.com.br


2010/10/26 Paul Arzul <paul.arzul at gmail.com>

> On 26 October 2010 00:12, Herman Hassel <herman at agrabush.com> wrote:
> > On 23.10.2010 21:02, help-request at lists.whatwg.org wrote:
> >
> > We'd be happy to get some feedback on this way of doing forms, if anyone
> has
> > a better idea when it comes to the semantics.
>
> You can nest the input in the label.
>
>
> > <form>
> >     <fileset>
> >         <legend>Personal Info</legend>
> >         <div>
> >             <label for="full_name">Full Name:</label>
> >             <input name="full_name" type="text" />
> >         </div>
> >         <div>
> >             <label for="full_address">Full Address</label>
> >             <input name="full_address" type="text" />
> >         </div>
> >     </fieldset>
>
> <legend>Personal Info</legend>
>    <label>Full Name: <input></label>
>    <label>Full Address: <input></label>
> ...
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20101026/2b890d44/attachment-0002.htm>


More information about the Help mailing list