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.

Thanks!

  • Katherine
  • Feb 9 2022
  • Katie Diduch commented
    February 14, 2023 20:45

    How can we do this now with custom attributes?

  • Katie Diduch commented
    February 14, 2023 20:43

    Yes, please!

  • Firmansyah Nuralif Rohman commented
    September 14, 2022 08:32

    need implement this Fieldset - Legend