W3C home > Mailing lists > Public > www-html@w3.org > April 2008

Re: Radio and checkbox texts

From: Frank Ellermann <nobody@xyzzy.claranet.de>
Date: Thu, 24 Apr 2008 01:25:10 +0200
To: www-html@w3.org
Message-ID: <fuogbd$1n2$1@ger.gmane.org>

Jukka K. Korpela wrote:

> a small monstrosity, requiring pointless invention
> and use of identifiers.

IIRC it doesn't work as expected for legacy browsers. 

> The logical structure would be to put the input field
> and its label inside a container, roughly as you can say
> <label><input type="radio" name="x" value="1">option1</label>
> at present, but the element namel "label" is quite
> illogical. (E.g. "field" would be better.)

Related radio buttons in a <fieldset> work, example:

<fieldset><legend><!-- intentionally void --></legend>
  <label title="world wide web">
    <input type="radio" name="meta"
           value="lr=lang_en|lang_de" checked="checked" />
    <small> WWW </small> &#160;
  </label>
  <label title="only W3C">
    <input type="radio" name="meta"
           value="sitesearch=w3.org&amp;domains=w3.org" />
    <small><a href="http://www.w3.org"> W3C </a></small> &#160;
  </label>
</fieldset>

That worked with Lynx and a Netscape 2.02 "mozilla 3", the
titles had of course no effect, and the <legend> needed to
be empty, otherwise Lynx would try to do something "smart".

 Frank
Received on Wednesday, 23 April 2008 23:23:21 GMT

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