W3C home > Mailing lists > Public > www-html@w3.org > August 2001

How to be markup LABEL element with two or more fields.

From: yuu Morita <yuu@os.rim.or.jp>
Date: Thu, 16 Aug 2001 07:05:18 -0400 (EDT)
Message-ID: <000701c12643$4bcff9f0$1b16a8c0@barchitects.com>
To: <www-html@w3.org>
Dear all,

I am wondering why LABEL element's FOR attribute value is not 
IDREFS type. I want you for me to think the following scenes. 
For example, when inputting a telephone number for every hyphen:

Tel. [        ] - [        ] - [        ]

If the markup of this is carried out using LABEL element, 
what does it become?

I want to come to markup in this way as below:

<label for="tel1 tel2 tel3">Tel.</label>
<input id="tel1">-<input id="tel2">-<input id="tel3">

However, since FOR attribute value is IDREF type, this is invalid 
in HTML 4.01. What is an appropriate markup in a case like this?

Thanks,


Best regards,
Yuu Morita
Received on Thursday, 16 August 2001 12:15:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:49 GMT