Skip to main content


Show more

html unordered list

HTML Unordered List

  • HTML provides unordered lists as a tool for structuring and organizing content in a non-sequential manner.
  • Unordered lists are ideal for displaying sets of items without a specific order of importance.
  • They offer flexibility in formatting and customization to suit different needs.
  • Let's explore the attributes and examples of HTML unordered lists to understand their complete functionality.

1. Basic Unordered List:

The most common use of an unordered list is to display items with bullet points. Here's a basic example:

  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>

2. Custom Bullets:

You can customize the bullets of your unordered list using CSS:

ul {
  list-style-type: square; /* Change bullet style */

Here's how:

  <li>Square bullet</li>
  <li>Square bullet</li>
  <li>Square bullet</li>

3. Nested Unordered Lists:

Unordered lists can be nested within each other for hierarchical organization:

  <li>Main item</li>
    <li>Sub-item A</li>
    <li>Sub-item B</li>
  <li>Another main item</li>

4. Mixed Marker Types:

You can mix marker types within the same unordered list:

  <li>Circle bullet</li>
  <ul style="list-style-type: square;">
    <li>Square bullet</li>
    <li>Square bullet</li>
  <li>Another circle bullet</li>

5. Use Cases:

  • Unordered lists are perfect for displaying lists of items without a specific order.
  • They're commonly used for navigation menus, bullet-pointed content, or listing options.
  • Unordered lists can be employed in conjunction with ordered lists for complex content structures.


HTML unordered lists offer a versatile way to structure and present information on a web page. By understanding their various attributes and examples, you can effectively utilize unordered lists to enhance the organization and readability of your content.

Experiment with different bullet styles, nesting levels, and content arrangements to tailor your unordered lists to your specific needs. With practice, you'll become proficient in leveraging unordered lists to create well-structured and engaging web content.