Loading
Unordered Lists
An unordered list is used to group a set of unrelated items. Items in an unordered list are marked with bullets (also called a bulleted list) instead of numbers.

Syntax: 
Unordered lists start with the <ul> (unordered list) tag, and each list item is wrapped inside an <li> (list item) tag.
<ul>
    <li>Line 1</li>
    <li>Line 2</li>
    <li>Line 3</li>
</ul>

Example: Unordered List in HTML
<!DOCTYPE html>
<html>

<head>
    <title>Unordered List</title>
</head>

<body>
    <h3>Unordered List Example</h3>
    <ul>
        <li>Cat</li>
        <li>Dog</li>
        <li>Cow</li>
    </ul>
</body>
<html>

Output:
Uploaded Image

type Attribute in Unordered Lists
The type attribute is used to define the style of bullet points in the unordered list. 
Here are the available options.

ValueDescription
discDefault. Displays solid round bullets.
circleDisplays hollow circle bullets.
squareDisplays solid square bullets.
noneNo bullet will be displayed.

1. type="disc" (Default Bullets)
Example:
<!DOCTYPE html>
<html>

<head>
    <title>Unordered List - Disc</title>

    <head>

    <body>
        <h3>Unordered List with Disc Bullets</h3>
        <ul type="disc">
            <li>Cat</li>
            <li>Dog</li>
            <li>Cow</li>
        </ul>
    </body>

</html>

Output:
Uploaded Image







2. type="circle" (Hollow Circle Bullets)
Example:
<!DOCTYPE html>
<html>

<head>
    <title>Unordered List - Circle</title>
</head>

<body>
    <h3>Unordered List with Circle Bullets</h3>
    <ul type="circle">
        <li>Cat</li>
        <li>Dog</li>
        <li>Cow</li>
    </ul>
</body>

</html>

Output:
Uploaded Image







3. type="square" (Square Bullets)
Example:
<!DOCTYPE html>
<html>
<head>
    <title>Unordered List - Square</title>
</head>
<body>
    <h3>Unordered List with Square Bullets</h3>
    <ul type="square">
        <li>Cat</li>
        <li>Dog</li>
        <li>Cow</li>
    </ul>
</body>
</html>

Output:
Uploaded Image







Key Point
  • User <ul> for unordered list and <li> for each item.
  • The type attribute changes the bullet style.
  • Default bullet style is disc.
  • Unordered lists are ideal for non-sequential content like menus, features or random item lists.