HTML Unordered List | Creating Lists with Bullet Points

An unordered list in HTML is used to display a list of items where the order does not matter. These lists are typically displayed with bullet points to mark each list item. Unordered lists are ideal for grouping related content that does not require a specific sequence.

Basic Syntax of an Unordered List:

The HTML unordered list is created using the <ul> tag. Each item in the list is marked with the <li> tag. The default display style is typically a bullet point, but this can be customized using CSS.

Using Unordered Lists in HTML

<ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
</ul>

Example of an Unordered List:

The following code creates an unordered list with three items:

Code Example


<!DOCTYPE html>
<html>
<head>
    <title>HTML Ordered List</title>
</head>
<body>
    <ul>
    <li>Apple</li>
    <li>Banana</li>
    <li>Cherry</li>
</ul>
</body>
</html>

Output

  • Apple
  • Banana
  • Cherry

Features of Unordered Lists:

Best Practices for Using Unordered Lists:

HTML unordered lists are a powerful tool for organizing non-sequential content. With customization options using CSS, you can make these lists fit seamlessly into your web design.