In short
A <ul> or <ol> may only have <li> (plus <script> and <template>) as direct children. Menus built as <ul><a>...</a></ul> or with a <div> wrapper inside the list break this, and screen readers miscount the items. Wrap each item in <li>. Weight 7.
<ul>
<li><a href="/services/">Services</a></li>
<li><a href="/about/">About</a></li>
</ul>
This guide isn't affiliated with or endorsed by Google.
Related issues
Sources and references
Chrome for Developers, Lighthouse accessibility score
MDN, ul element

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



