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

Re: XHTML option label

From: Christian Smith <csmith@barebones.com>
Date: Sat, 10 Mar 2001 20:32:12 -0500
To: www-html@w3.org
cc: Peter Chiocchetti <girbal@tacheles.de>
Message-ID: <20010310203213-r01010600-766a1fb4@192.168.0.1>
On Saturday, March 10, 2001 at 08:52, girbal@tacheles.de (Peter Chiocchetti) wrote:

> hello,
> 
> just stumbled across something quite disturbing with the xhtml
> spec; it allows for selects in forms but not for putting
> labels on them.

Sure it does.

>       <option value="Uberweisung" />Uberweisung
> 
>       Error: text is not allowed here; try wrapping the text
>       in a more descriptive container

Well, you closed the <option> tag before you typed the label. Try

<option value="Uberweisung">Uberweisung</option>

-- 
Christian Smith  |  csmith@barebones.com  |  http://web.barebones.com
PGP Fingerprint  -  60E5 2216 97D2 1D1A B923 F036 00A9 CEC0 D411 FA89
Received on Saturday, 10 March 2001 20:31:34 GMT

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