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!
How can we do this now with custom attributes?
Yes, please!
need implement this Fieldset - Legend