Key Ideas
1Unordered Lists <ul>. An unordered list is a collection of items where the order doesn't matter. Each item gets a bullet point by default. Use <ul> for things like feature lists, ingr...
2Ordered Lists <ol>. An ordered list renders items with sequential numbers. Use it when the order matters — step-by-step instructions, rankings, recipes, or legal clauses. Browsers automat...
3Description Lists <dl>. A description list pairs terms with their definitions. It uses three elements: <dl> (the container), <dt> (description term), and <dd> (description d...
4Nested Lists. Lists can be nested inside other lists by placing a new <ul> or <ol> inside an <li> element. This is commonly used for hierarchical navigation menus,...
5Lists and Navigation. Navigation menus are almost universally built with <nav><ul><li><a> patterns. The unordered list provides the semantic structure of a collectio...