WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Separating various radio buttons

for

From: Marc Solomon
Date: Aug 1, 2016 12:21PM


Try adding a matching name and unique value attribute to each radio input. For example:

<form>
<fieldset>
<legend>
Overall, how would you rate the experience you received during your contact with our representative today?
</legend>

<input type="radio" id="VeryGood" name="rating" value="VeryGood">
<label for="VeryGood">
Very Good
</label>

<input type="radio" id="Good" name="rating" value="Good"">
<label for="Good">
Good
</label>
</fieldset>
</form>

Best,
Marc