HTML Definition list is missing child elements
| Field | Value |
|---|---|
| Rule code | HtmlList_Definition_ChildElem_Missing |
| WCAG conformance level | A |
| WCAG success criterion | 1.3.1 Info and Relationships |
| Must be fixed at source | No |
Description
HTML definition lists (dl) require a pair of child elements for each term listed: dt (definition term) and dd (definition description). These pairs of elements may optionally be encased in a div HTML tag, but must be present and children of the dl parent tag. We detected that this definition list (aka description list) is missing the required pairs of child elements, making this definition list invalid.
How to fix
Each <dt> element in a description list needs to have one or more corresponding <dd> elements.
<h2>Reference</h2>
<dl>
<dt>Project Mercury</dt>
<dd>First U.S. human spaceflight program</dd>
<dt>Project Gemini</dt>
<dd>Second U.S. human spaceflight program</dd>
<dt>Apollo program</dt>
<dd>Third U.S. human spaceflight program</dd>
</dl>