List Elements
<ul>: unordered list (bullet points)<ol>: ordered list (numbers by default)<li>: list item (the individual item inside ul/ol)- Lists are great for navigation menus, steps, features, and grouped content.
Nested Lists
- You can place a
<ul>or<ol>inside an<li>to create sub-items. - Keep nesting shallow when possible—deep nesting hurts readability.
Lists Example
Loading...
Preview
Loading...
Best Practice: Use lists for actual lists of related items. Don’t use lists just to indent text—use CSS for layout.