Whooooooaaaaa nelly!

!important -- not adding a 'for' attribute kills half the purpose of
using a <label>  0_o
Without a for attrib, clicking the label will not affect
(focus/activate) the input element nested within. This is especially
important in the case of checkboxes and radio buttons as the label
provides a target that can actually be clicked by most users.

I've said this to many WSG members before -- providing for physical
dissablities IS EXTREMELY IMPORTANT -- they're far more common than
people think. EG: I have incredibly shaky hands, yet I surf the web at
home using a wacom tablet and a keyboard with my head approx 2 feet
from the monitor. I can't click a radio button on the first attempt
with that setup, but that's my setup and you have to account for
freaks like me when designing :)

My personal preference is to always use the 'belt and brace' method as
I use the label as the container that lines up the label text and the
input. This also means that the entire row for each element is
clickable. w00t. [Hint: label text within a <span> can be vertically
centered relative to the label using the vertical-align property ;)

-Andrew
--------------------------------
http://leftjustified.net/

On 8/2/05, Chris Kennon <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Thanks, the "belt and brace" approach being most secure?
foo" name="foo" /></label>
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to