When I have a mandatory (required) radio group, which element(s) should have the aria-required="true"
attribute? Basically, I have a bunch of <input type="radio">
elements that share the same name
and are grouped together under a <fieldset>
.
- Should I put
aria-required
on the<fieldset>
? - Should I put
aria-required
on each radio? - Or would you say "there should be no such thing as a mandatory radio group; set a default value so that the radio group can never be in non-selected state"? -- perhaps this is the topic for a separate usability discussion.