[html5] grouping radio buttons with images

Nathan Ziarek nziarek at gmail.com
Thu Jun 23 04:37:46 PDT 2011


> what would be the right choice for grouping the radio and the image toghether?

<label>

Semantically, it's still correct, since the image is the "description" of the radio button choice. And, assuming you use the "for" attribute, there is the added benefit that clicking on the image (a larger hit target) activates the radio button.

nz


On Jun 23, 2011, at 6:08 AM, Eva Michalcak wrote:

> i have a set of radio buttons that allow to choose between different images. each radio has an image but no label or any other text.
> 
> what would be the right choice for grouping the radio and the image toghether?
> 
> label?
> fieldset?
> div?
> 
> thanks
> eva
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20110623/6f7231eb/attachment-0003.htm>


More information about the Help mailing list