Lists Must Only Contain List Items

No Comments

Quick Reference

Element Code: HT-024

Issue: ul/ol contains non-li children

Impact: Invalid HTML

Fix: Wrap in li

Detection: HTML validation

What Is This Issue?

Lists should only directly contain li.

Why This Matters

Invalid structure breaks accessibility.

How to Fix

  1. Wrap content in li

Tools

  • HTML validator: List check

TL;DR

Only put li elements directly inside ul or ol.

About SEO ProCheck

Technical SEO consulting and GEO strategy with 20 years of enterprise experience. Case studies, resources, and tools for search and AI visibility.

Work With Me

Technical SEO audits, GEO strategy, site migrations, and international SEO. Hourly consulting for teams who need hands-on support, not just reports.

Subscribe to our newsletter!

More from our blog