Re: HTML5 tag specs [via HTML5 Specifications Community Group]

Rule says <label for="nameOfElement"></label>

Ricardo Vercesi
web and beyond...


On Thu, Jan 23, 2014 at 1:05 PM, <laurent.goderre@gmail.com> wrote:

> I think the for needs to reference the id of the form control instead of
> the name.
>
>   *From: *Ricardo Vercesi
> *Sent: *Thursday, January 23, 2014 6:40 AM
> *To: *Elcio Abrahao
> *Cc: *public-html5spec@w3.org
> *Subject: *Re: HTML5 tag specs [via HTML5 Specifications Community Group]
>
> The "for" attribute is used usually within the label tag and should refer
> to the name of the element. So if you have a radio button named "myRadio"
> the for attribute of your label should be "myRadio" as well and not "radio".
>
> Ricardo Vercesi
> web and beyond...
>
>
> On Wed, Jan 22, 2014 at 7:58 PM, Elcio Abrahao <elcio_abrahao@yahoo.com.br
> > wrote:
>
>> Hi Guys !!!
>>
>> My name is Elcio Abrahão and I m an University Teacher in São Paulo -
>> Brazil.
>>
>> I m using HTML5 to teach programing for my students the form did not
>> change the
>> output value when I add a field type "radio" to the "for" attribute. Is
>> this a
>> project specification or this is a [...]
>>
>>
>>
>> ----------
>>
>> This post sent on HTML5 Specifications Community Group
>>
>>
>>
>> 'HTML5  tag specs'
>>
>> http://www.w3.org/community/html5spec/2014/01/22/html5-tag-specs/
>>
>>
>>
>> Learn more about the HTML5 Specifications Community Group:
>>
>> http://www.w3.org/community/html5spec
>>
>>
>>
>>
>>
>
>

Received on Thursday, 23 January 2014 13:19:35 UTC