Radio group with error - aria-describedby applied to <input>

Return to main list

This is a test case designed to determine how an error message associated with a radio group will be announced by various screen readers.

Example

Do you like boats?

Error: Choose at least one option

Code

<fieldset>
  <legend>Do you like boats?</legend>
  <div class="form-group">
    <input type="radio" id="boats-y" name="boats" aria-describedby="e01">
    <label for="boats-y">Yes</label>
  </div>
  <div class="form-group">
    <input type="radio" id="boats-n" name="boats" aria-describedby="e01">
    <label for="boats-n">No</label>
  </div>
  <p class="error-message" id="e01">Error: Choose at least one option</p>
</fieldset>

Assistive technologies

VoiceOver

NVDA

JAWS

Return to main list