fieldset must have one legend

Rule ID Control 8
Definition Every fieldset element must contain exactly one legend element.
Purpose
  • Multiple legend elements contained in the same fieldset may result in the improper calculation of labels for assistive technologies.
Mappings
  • HTML4 Legacy Techniques (Required)
  • HTML5 and ARIA Techniques (Required)
WCAG Success Criteria

3.3.2 Labels or Instructions (Level A, Primary Success Criterion)

Rule Category Forms
Scope Element
Target Resources fieldset and legend elements
  • fieldset
Techniques
  • A fieldset element should have one and only one legend element to describe the purpose of the form controls it contains.
Informational Links