Inappropriate or Missing Li Element Check

RuleSets of AccessMonitor - the validator of web accessibility practices

Inappropriate or Missing Li Element Check

Description

The “Inappropriate or Missing Li Element Check” evaluates whether there is any <li> (list item) element that is not contained within a parent list structure (e.g., <ul>, <ol>, or <menu>), or any list structure element without any <li> element.

Example outcome

I found 1 occurrence of an empty list or an <li> outside of the list.

Impact

Fixes

To address inappropriate or missing <li> elements:

  1. Locate the inappropriate <li> element or the list structure element with no <li> element.
  2. If it is an <li> element outside a parent list structure, replace the <li> tag by another HTML tag that correctly serves the purpose.
  3. Otherwise, either remove the list structure element or populate it with meaningful <li> elements.

Resources