Webtrax docs

Rules · Accessibility (browser, axe-core WCAG 2.x A/AA)

<ul> and <ol> must only directly contain <li>, <script> or <template> elements

a11y.list · default severity MEDIUM · rule version 1

Why it matters

Ensure that lists are structured correctly. WCAG: 1.3.1.

How to fix it

<ul> and <ol> must only directly contain <li>, <script> or <template> elements. Deque's guidance for this rule: https://dequeuniversity.com/rules/axe/4.14/list

Checking the fix

Run the check again (webtrax check <url>), or compare two runs with webtrax diff: a fixed finding moves to "Fixed". To see this guidance from the terminal, run webtrax explain a11y.list.