Add fieldset and legend for grouping related form inputs

When creating accessible forms, it's important to use fieldset and legend to group related controls/inputs, such as check boxes or radio buttons that answer a single question.

There are workarounds that use ARIA, but not every browser/screen reader combination will pick those up, and it's best practice to use semantic HTML elements if available rather than ARIA.


  • Katherine
  • Feb 9 2022
  • Katie Diduch commented
    14 Feb, 2023 08:45pm

    How can we do this now with custom attributes?

  • Katie Diduch commented
    14 Feb, 2023 08:43pm

    Yes, please!

  • Firmansyah Nuralif Rohman commented
    14 Sep, 2022 08:32am

    need implement this Fieldset - Legend