[whatwg] One label: multiple fields
Mihai Sucan
mihai.sucan at gmail.com
Tue Mar 13 12:54:27 PDT 2007
Le Tue, 13 Mar 2007 19:37:31 +0200, Elliotte Harold
<elharo at metalab.unc.edu> a écrit:
> However looking at a number of tabular but not exactly repeating forms,
> both on the Web and on paper, I notice that it common for the column
> headers to essentially serve as label for the input fields. For example
>
>
> Homework 1 Homework 2 Homework 3
> John Smith 87 86 98
> Jane Jones 100 78 98
> Fred Wilde 89 65 69
>
> What strikes me about examples like this is that the labels for the
> input fields naturally apply to more than one input field. For example,
> in the above each label covers three fields. I wonder if there's a
> common use case to say something like
>
> <label for="A1 A2 A3">Homework 1</label>
> <label for="B1 B2 B3">Homework 2</label>
> <label for="C1 C2 C3">Homework 3</label>
>
> Currently this is not possible. The label's for attribute can only point
> to one input element.
The code:
<label for="A1 A2 A3">Homework 1</label>
Would not really be correct, not even for a human. For example, "Homework
1" is not the label of A1, or at least it's not the complete label. The
real label for A1 is "John Smith" AND "Homework 1".
The use case is not really common, in my opinion.
--
http://www.robodesign.ro
ROBO Design - We bring you the future
More information about the whatwg
mailing list