What's wrong
Orphaned `<li>` elements outside of list tags violate HTML grammar and break accessibility semantics.
Who it affects
Screen readers cannot announce 'List of X items' or announce the position of the item in the list.
How to fix on WordPress
Wrap dynamic post lists and block query loops in proper `<ul>` containers.
Code example
Problematic Code
PHP
<?php while ( have_posts() ) : the_post(); ?>
<li><?php the_title(); ?></li>
<?php endwhile; ?>Recommended Accessible Code
PHP
<ul class="post-list">
<?php while ( have_posts() ) : the_post(); ?>
<li><?php the_title(); ?></li>
<?php endwhile; ?>
</ul>How to check your fix
Inspect each `<li>` element in DevTools and confirm its immediate parent is `<ul>` or `<ol>`.