Fieldset missing a legend

Compliance Data & User Impact

User Impact: Critical

80% Complete

Disabilities Affected:

  • blindness
  • deaf blindness
  • learning disabilities

WCAG Version:

WCAG Levels:

  • A

WCAG Guidelines:

Solution Techniques:

Automated Test Accuracy:

Check1st Severity:

DRRSAG Designations:

  • description

How to Fix the Problem

The first element inside the <fieldset> element must be a <legend> element which will be unique per fieldset. It provides a label or description for the group of elements that it contains. The default visual effect of the legend element can be modified in CSS by overriding its “position” property.

The Algorithm, in Simple Terms

Engine scans for <fieldset> elements missing a <legend> as first child element

Why Is it Important?

Fieldsets provide a semantic grouping for related form controls. This allows users to understand the relationship of the controls and interact with the form more quickly and effectively.

Code Example

<legend>I am interested in the following (check all that apply):</legend>
<label for="id_example_photo">Photography</label><br />
<input type="checkbox" id="id_example_photo" name="interests" value="ph">
<label for="id_example_check">Photography</label><br />
<input type="checkbox" id="id_example_check" checked="checked" >
<label for="id_example_checkit">check it</label><br />
<input type="checkbox" id="id_example_checkit" checked="checked" value="ac">

Additional Information

Relevant Technologies: HTML and XHTML

This element perfoms as a container, and has no functionality. This container may contain another elements that has functionality or logical role.

Ignore this issue if this element has an alternative that performs the same and overrides the content of this element.

Address: 401 9th St NW, 6th Floor
Washington, DC 20004
Phone number: (888) 995-WCAG
International number: 1(888) 995-9224