WebAIM - Web Accessibility In Mind

E-mail List Archives

fieldset for radio buttons


From: Marek Prokop
Date: May 22, 2003 4:23PM

Hello all,

I have a question on the accessibility of a search form,
particularly whether the fieldset with a legend around the radio
buttons is necessary (or at least useful).

Full story: Because I use a free outsourced search engine, I
have to provide two options -- internal search of my website
only and global search all over the Web. My initial design looks
like this (some elements and attributes are omited):

<form ...>
<label for="sstr">Search for:</label>
<input type="text" id="sstr" />
<legend>Where to search</legend>
<input type="radio" id="searchinsova" checked="checked"
<label for="searchinsova">This site</label>
<input type="radio" id="searchincz" />
<label for="searchincz">WWW</label>
<input type="submit" value="Search" class="button" />

You can review the result (unfortunately in Czech) in the left
column below the menu of this page:


The problem is that the form occupies fairly large space and I'd
like to make it a little shorter. I could get rid of the
fieldset (including the legend) around the radio buttons, but I
definitely don't want to make it less accessible. What's your

Thank you very much for your kind advice,

CSS Workshop :: http://www.sovavsiti.cz/css/

To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/