This is the first time for me to see someone proposing use of <label><input
/></label> structure.I agree that <ol> is not strictly necessary and that a
form is not necessarily a list, but one could argue that you are dealing
with a list of form input elements.
Read more why I do this here:
http://www.alistapart.com/articles/prettyaccessibleforms
Using a list also gives better control over the look as I never do:
float:left; clear: left; since that proves to cause cross browser issues
more often than not.
Cheers,
Jason

On Thu, Oct 16, 2008 at 1:23 PM, Johan Douma <[EMAIL PROTECTED]> wrote:

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



-- 
Jason Grant BSc, MSc
CEO, Flexewebs Ltd.
www.flexewebs.com
[EMAIL PROTECTED]
+44 (0)7748 591 770
Company no.: 5587469

www.twitter.com/flexewebs
www.linkedin.com/in/flexewebs


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to