HTML Unordered Lists Guide
Learn how to create and style unordered lists in HTML
What are Unordered Lists?
Unordered lists (<ul>
) in HTML are used to group collections of items that do not require a specific order or sequence. Each item in the list is marked with a bullet point by default, making them ideal for:
- Navigation menus and site maps
- Feature lists and product specifications
- Ingredients or item collections
- Any content where the order of items isn't important
Key Features:
- Simple bullet-pointed item display
- Multiple bullet style options (disc, circle, square)
- Ability to remove bullets completely
- Support for nested lists within lists
- Full CSS styling capabilities for custom designs
Basic Unordered List
Simple bulleted list with default styling
<ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>
Usage: For grouping related items where order doesn't matter
Compact List
List with reduced spacing between items
<ul style="line-height: 1.2;">
<li style="margin-bottom: 4px;">Compact item 1</li>
<li style="margin-bottom: 4px;">Compact item 2</li>
<li style="margin-bottom: 4px;">Compact item 3</li>
</ul>
Usage: When space is limited or for dense information display
List with Custom Indentation
List with adjusted indentation levels
<ul style="padding-left: 10px;">
<li>Less indented item 1</li>
<li>Less indented item 2</li>
</ul>
<ul style="padding-left: 40px;">
<li>More indented item 1</li>
<li>More indented item 2</li>
</ul>
Usage: To control visual hierarchy and grouping
Disc (Default)
Filled circular bullet points
Circle
Hollow circular bullet points
Square
Filled square bullet points
None
No visible markers
Navigation Menu
Feature List
Ingredient List
Multi-level Navigation
Nested lists for dropdown navigation
Document Outline
Nested lists for content structure
Custom Bullet Icons
Using CSS to replace default bullets with custom icons
Horizontal List
Displaying list items in a row instead of vertically
Unordered List Playground
Experiment with unordered lists in our live editor
Unordered List Examples Preview
Ready-to-use examples covering different list scenarios
Features Included
All examples will be loaded into an interactive editor where you can modify and test them