Lists With Incorrect Markup

Lists With Incorrect Markup

WCAG Focus: WCAG 1.3.1 (A)

Pasting text from PDFs or Microsoft Word into WordPress often produces paragraphs starting with typed bullet characters (• Item 1<br>• Item 2) instead of genuine <ul> and <li> tags—or wraps non-<li> elements directly inside a <ul> or <ol>. Screen readers lose the ability to announce "List of 5 items" and jump past the list cleanly.

Why This Pattern Violates WCAG

WCAG 1.3.1 Info and Relationships (Level A) requires list relationships to be conveyed semantically using <ul>, <ol>, and <li> (or <dl>/<dt>/<dd>) rather than visual symbols.

Only <li>, <script>, or <template> elements are valid direct children of <ul> and <ol>.

Code Comparison

Inaccessible Fake Bullet List

<p>• Check heading order<br>• Verify alt text<br>• Test keyboard focus</p>

Compliant Semantic Unordered List

<ul>
  <li>Check heading order</li>
  <li>Verify alt text</li>
  <li>Test keyboard focus</li>
</ul>

How to Fix It in WordPress

  • Use WordPress List blocks (<ul> or <ol>) instead of typed dashes, asterisks, or bullet characters.
  • Verify custom menu walkers and template loops never place <div> or <span> directly inside <ul> without an enclosing <li>.

Finding This Issue Automatically

Pasted bullet points and custom theme loops frequently output malformed list markup that degrades screen reader navigation. The WP ADA Compliance Check plugin detects lists with incorrect HTML markup across your WordPress pages so structural lists always announce accurate item counts.

WCAG References & Supporting Materials

WCAG Success Criteria

Supporting Documentation & Guides

Subscribe

Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

Cart Accessibility Tools
hide