Lesson 54 of 55
HTMLLists
8 min
Course progress98%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 54 of 55
HTML8 min
Keep these ideas in mind as you work through the lesson.
HTML offers three list types to convey ordered, unordered, and definition data.
<ul>
<li>Apples</li>
<li>Bananas</li>
<li>Cherries</li>
</ul>
<ol>
<li>First step</li>
<li>Second step</li>
</ol>
<dl>
<dt>HTML</dt>
<dd>Markup language for structuring web content.</dd>
<dt>CSS</dt>
<dd>Style sheet language for presentation.</dd>
</dl>
<ul>, <ol>, <dl>) instead of generic <div>s – screen readers announce the list type and length automatically.list-style-type or the modern ::marker pseudo‑element lets you customise bullets without affecting semantics.<ul> with proper headings.<ul> with <a> inside <li>.<ol>.<dl>.list-style-type or ::marker.Tip: Avoid mixing list types inside the same parent unless the content truly requires it; it can confuse assistive technology.
<div> used in place of a list? ✅::marker or list-style-type used for custom bullets? ✅<h2>, etc.) present when appropriate? ✅If any answer is “no”, refactor the markup now.