Re: XHTML option label

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 UTC