An alternative, not the candidate
aria-errormessage is supported unevenly and is generally only exposed in some screen-reader browse modes, not when tabbing through fields. It is not supported on a fieldset with role group. The 2026-12-01 Lab candidate uses aria-describedby only; this page exists to compare the two.
What to notice
- The Name and Email inputs use
aria-errormessagefor the error and keep the help text inaria-describedby. - If your screen reader exposes it, the error may be available in browse mode. On focus, the help text is the description; the error may not be announced.
- The radio group cannot use
aria-errormessage: a fieldset with rolegroupdoes not support it, so it falls back toaria-describedby. This inconsistency is why the candidate does not use both. - The visible form is identical to the other examples.
Back to aria-describedby, or continue to a group-level error.