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

Note: This is the default style if none specified

Circle

Hollow circular bullet points

Note: Provides a lighter visual appearance than disc

Square

Filled square bullet points

Note: Offers a more angular, modern look

None

No visible markers

Note: Useful when creating custom markers with CSS

Navigation Menu

Feature List

Ingredient List

Multi-level Navigation

Nested lists for dropdown navigation

Usage: For creating hierarchical navigation menus

Document Outline

Nested lists for content structure

Usage: For creating document outlines or table of contents

Custom Bullet Icons

Using CSS to replace default bullets with custom icons

Note: Allows for creative visual styling beyond standard bullets

Horizontal List

Displaying list items in a row instead of vertically

Note: Ideal for tags, filters, or horizontal navigation

Unordered List Playground

Experiment with unordered lists in our live editor

Unordered List Examples Preview

Ready-to-use examples covering different list scenarios

Live Preview

Features Included

Basic Lists
Simple bullet points
Marker Types
disc, circle, square
Nesting
Multi-level lists
Styling
Custom CSS examples

All examples will be loaded into an interactive editor where you can modify and test them

< PreviousNext >