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

Re: Radio and checkbox texts

From: Anas R. <anas.linuxfuture@gmail.com>
Date: Mon, 28 Apr 2008 17:40:51 +0200
To: "w3-html" <www-html@w3.org>
Message-ID: <4815e176.01ba420a.3db9.ffffbde5@mx.google.com>

======= At 2008-04-28, 07:38:57 you wrote: =======

>Anas R. wrote:
>> I'm trying to say that we have to deal with the radio button and its text as a one object.
>> So that styling input[type='radio'] will mean styling the radio-btton-text that has an icon called 'radio-button'.
>> Just like styling <li> object that has an icon called 'circle'.
>Enclose the radio button and its text in another element (div or li or 
>p, or whatever you think is most appropriate), give it a class of 
>'radio', then style it like:
>.radio {}
>Does this not solve your problem without breaking backwards 
>compatibility, and if not, why not?

I quite understand that, but I'm trying to suggest a 'better solution':
Less coding, easier maintainability, a better understood structure.
But regarding backwards compatibility, I've post another syntax:

<label>Gender:</label>						<input name="gender" value="male" type="radio">Male</input>
															<input name="gender" value="female" type="radio">Female</input>

Which is backwards compatible.

Best regards, 
- Anas R.
Received on Monday, 28 April 2008 14:39:35 UTC

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