Chris Kennon wrote:
This would be explicit?
<label for="foo">Foo
And this implied?
<input type=text id="foo" name="foo" />
It can be a tad confusing, as the spec itself
http://www.w3.org/TR/html4/interact/forms.html#h-17.9 uses "implicit" in
two different ways:
1) a form control such as a submit button has its own *implicit* label
already contained within it
<input type="submit" value="implicit label" /> and does not need a label
element.
2) when talking about labels associated with form controls, however,
using a "for" attribute and related "id" is *explicit*
<label for="foo">explicit label</label>
<input type="text" id="foo" name="foo" />
and not using "for", but wrapping the form control inside the actual
label element is what's referred to as *implicit*
<label>implicit label <input type="text" name="foo" /></label>
The "belt and braces" approach when using labels is to make the label
both explicit (via "for") *and* implicit (by wrapping the control in the
label)
<label for="foo">explicit and implicit label <input type="text" id="foo"
name="foo" /></label>
--
Patrick H. Lauke
__________________________________________________________
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
__________________________________________________________
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
__________________________________________________________
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************