Definition lists (definition-list)

Ensure each term is marked as <dt> and each definition as <dd> within a <dl> to maintain a semantic term-definition pairing.


Incorrect nesting of dt:

In this example the <dt> element is nested within the <dd> element, which means that the (DOM) structure of the term is improper:


Term inside a definition

The (DOM/programmatic) structure of the above example looks like this:

<dl>
<dd>
<dt>
Term inside a definition </dt>
</dd>
</dl>

Note: Possible to automatically test. This violation can be automatically detected by querying all <dt> elements and programmatically checking whether these <dt> elements are improperly nested within <dd> elements.