WebAIM - Web Accessibility In Mind

E-mail List Archives

Radio group without legend and fieldset

for

From: Sudheer Babu
Date: Jan 17, 2020 6:55AM


Hi All,

Can you please check the below code and let me know if the implementation
for the radio group is proper without the legend and fieldset and also if
it pops up any error via tools like axe/wave.

Thanks!

<div role="group" aria-labelled-by="exampleId">
<label id="exampleId">Choices</label>
<label>
<input type="radio" name="example-radio" value="One" />
<span>One</span>
</label>
<label>
<input type="radio" name="example-radio" value="Two" />
<span>Two</span>
</label>
</div>