Fieldsets and legends

LIVE This can be replicated across platforms

Use a fieldset to group together multiple answers relating to the same question or topic. Inside the fieldset include your question in a legend tag.

Placing the legend inside the fieldset enables screen reader users to associate the question with the grouped inputs or options.

This applies to multiple input fields grouped under a section for example 'Your details'. As well as multiple option checkboxes and radio buttons.

Multiple input field example:

Your details <legend>

Radio button multiple option example:

Where do you park your vehicle overnight? <legend>

These guidelines relate to best practice accessibility and may already be in place on your form platform.

If you see an option to populate a legend your fields are most likely already in a fieldset. Check your platform documentation.