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.
Example: Unordered List in HTML
Output:

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.
1. type="disc" (Default Bullets)
Example:
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:

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.
Value | Description |
---|---|
disc | Default. Displays solid round bullets. |
circle | Displays hollow circle bullets. |
square | Displays solid square bullets. |
none | No 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> <