HTML UNORDERED LIST
An unordered list is a list of items that are not arranged in any specific, sequential order. Unlike ordered lists, the items in an unordered list are typically marked with bullet points, dashes, or other symbols to indicate list membership, but these markers do not imply any particular order.
Key Characteristics of Unordered Lists
- No specific sequence is required.
- Typically displayed as bullet points.
- Defined using the
<ul>
tag. - Individual items use the
<li>
tag.
Basic Example
app/index.html
1<ul>
2 <li>Pen</li>
3 <li>Pencil</li>
4 <li>Eraser</li>
5</ul>
Output
- Pen
- Pencil
- Eraser
Customizing Bullet Points with 'type' Attribute
You can specify the style of bullet points using the type attribute. It supports three values:
- disc - default bullet style
- square
- circle
Example Using Square Bullets:
app/index.html
1<ul type="square">
2 <li>Notebook</li>
3 <li>Marker</li>
4</ul>