HTML Unordered Lists
Master the art of organizing content with semantic, accessible unordered lists
Unordered lists are fundamental for content structure, navigation, and creating scannable, accessible web pages.
š
Basic Unordered Lists
Fundamental Syntax
HTML Structure
<ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>- ā¢
<ul>- Unordered List container - ā¢
<li>- List Item element - ⢠Automatically adds bullets
- ⢠Built-in spacing and indentation
Rendered Output
- First item
- Second item
- Third item
Default styling with disc bullets and proper indentation
Nested Lists
Nested HTML
<ul>
<li>Main Category
<ul>
<li>Sub-item 1</li>
<li>Sub-item 2
<ul>
<li>Sub-sub-item A</li>
<li>Sub-sub-item B</li>
</ul>
</li>
</ul>
</li>
</ul>Visual Hierarchy
- Main Category
- Sub-item 1
- Sub-item 2
- Sub-sub-item A
- Sub-sub-item B
Automatic bullet style changes for nested levels
Common Use Cases
Navigation Menus
Primary website navigation
ā
Semantic structureā
Keyboard accessibleā
SEO friendlyFeature Lists
Product features or benefits
ā
Easy to scanā
Visual hierarchyā
Mobile friendlyChecklist/Todo
Interactive checklists
ā
User interactionā
Progress trackingā
AccessibleNested Categories
Hierarchical data organization
ā
Clear hierarchyā
Organized contentā
Scalable structureBest Practices
ā Use for related items of equal importance
ā Maintain consistent bullet styles
ā Limit nesting to 3 levels maximum
ā Ensure proper contrast for bullets
ā Use semantic HTML structure
ā Provide adequate spacing
ā Test with screen readers
ā Consider mobile touch targets
List Usage Stats
85%
Websites use unordered lists
3.2s
Faster comprehension vs paragraphs
47%
Better mobile readability