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 friendly

Feature Lists

Product features or benefits

āœ“
Easy to scan
āœ“
Visual hierarchy
āœ“
Mobile friendly

Checklist/Todo

Interactive checklists

āœ“
User interaction
āœ“
Progress tracking
āœ“
Accessible

Nested Categories

Hierarchical data organization

āœ“
Clear hierarchy
āœ“
Organized content
āœ“
Scalable structure

Best 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
VIDO - Learn Web Development