Yes, the only difference between between the input in the label and having it outside of the label with the for attribute set is primarily just some formatting via CSS differences. Beyond that, there is little difference. All modern browsers (and even most older ones) allow you to click on the label to put your focus in the input that that the label is referenced to, regardless of which way it is implemented.

Thomas Thomassen wrote:
When the LABEL element wraps around INPUT you do not need the FOR attribute.The hierarchy provides the connection between them. However, when the LABEL does not wrap around the INPUT, the FOR attribute is required for useragent to know the elements are related.


----- Original Message ----- From: "John Faulds" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, February 06, 2008 7:42 AM
Subject: Re: [WSG] Styling forms


Hi Germ17,I have seen your example presented in GERMWORKS.NETFYI, your approach is perfect to my knowledge, but the <INPUT> element should not wrapped by any <LABEL> element. It's not compliant/accessible...I request you to modify this example according to standards, if you believe
the same.

You're wrong there. It's perfectly valid HTML and I don't believe it is any less accessible as long as the 'for' attribute is specified.


--
Tyssen Design
http://www.tyssendesign.com.au
Ph: (07) 3300 3303
Mb: 0405 678 590


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




--

Christian Snodgrass
Azure Ronin Web Design
http://www.arwebdesign.net/ <http://www.arwebdesign.net>
Phone: 859.816.7955



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

Reply via email to