Explore Bato Web Agency Webflow Certified Partner Profile Explore Bato Web Agency Webflow Certified Partner Profile

Do lists need to use ul, ol and li elements to be accessible?

Illustration without a description Illustration without a description

Content that functions as a list should normally use semantic HTML list elements. Use <ul> for items whose order does not matter, <ol> for a sequence, and <li> for each item. This exposes the grouping and often the number of items to assistive technology.

 

Visual bullets, line breaks or repeated divs may look like a list but do not communicate that relationship programmatically. A screen-reader user may hear a series of unrelated sentences without knowing where the group begins or ends. An ordered list is especially helpful for instructions because the sequence remains clear when CSS, spacing or visual numbers are unavailable. Nested lists should use a new list inside the relevant list item so the parent-child relationship remains explicit. If visual markers are removed, test whether the remaining spacing still makes the grouping clear to sighted users.

 

<ol>
<li>Enter your email address.</li>
<li>Open the confirmation message.</li>
<li>Choose a new password.</li>
</ol>

 

Not every row of nearby content is a list. A set of unrelated cards may be better represented as articles, and a definition-style group may need <dl>, <dt> and <dd>. Navigation links are often placed in a list when they form a clear set, but the surrounding <nav> landmark provides the essential navigation identity.

 

Use CSS to remove or change visual markers without discarding the semantic structure, then verify how the target browsers and screen readers announce the result. Markup should reflect the relationship users need to understand, not merely reproduce indentation or decorative bullets.