HTML List Tags (including nested lists)
Unordered List
- Apples - sweet and crispy fruit
- Bananas - yellow curved fruit
- Oranges - citrus fruit full of vitamin C
Nested Unordered List
Ordered List with Nested Sub-steps
-
Prepare the batter
- Sift the flour
- Beat the eggs
- Fold wet into dry
- Preheat the oven to 180°C
-
Bake
- Bake for 25 minutes
- Increase heat to 200°C for 5 minutes to brown
Mixed Nesting
-
Project Plan
- Research
- Design
- Implementation
-
Delivery
Navigation Menu (semantic)
Notes & Best Practices
-
Put the nested
<ul> or <ol> INSIDE
the parent <li>.
-
Avoid extremely deep nesting — it becomes hard to read and confusing for
users and screen readers.
-
You can change marker styles with CSS (e.g.,
list-style-type), but keep default markers for clarity in
beginner lessons.