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 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;

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".

Received on Wednesday, 23 April 2008 23:23:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:19 UTC