W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2007

[whatwg] One label: multiple fields

From: Mihai Sucan <mihai.sucan@gmail.com>
Date: Tue, 13 Mar 2007 21:54:27 +0200
Message-ID: <op.to4781cxmcpsjgr0b0dp@localhost.localdomain>
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
Received on Tuesday, 13 March 2007 12:54:27 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:53 UTC