HTML Unordered List
An unordered list in HTML is used to display items using bullets. Learn how to create an unordered list in HTML.
It is suitable for listing items where the order doesn't matter. In this tutorial, we will learn how to create an unordered list in HTML.
Key Points
- No specific sequence is required.
- Typically displayed as bullet points.
- Defined using the
<ul>tag. - Individual items use the
<li>tag.
Syntax of an Unordered List
<ul>
<li>Pen</li>
<li>Pencil</li>
<li>Eraser</li>
</ul>Output of an Unordered List
• Pen
• Pencil
• EraserCustomizing 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
<ul type="square">
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ul>Output of Square Bullets
▪ Red
▪ Green
▪ BlueExample Using Circle Bullets
<ul type="circle">
<li>Apple</li>
<li>Orange</li>
<li>Banana</li>
</ul>Output of Circle Bullets
◦ Apple
◦ Orange
◦ BananaConclusion
In this tutorial, we learned how to create an unordered list in HTML. We also explored customizing bullet points using the type attribute. Unordered lists are ideal for displaying items where the order doesn't matter.
How is this guide?
Sign in to share your feedback
Help us improve by sharing your thoughts on this guide.
Last updated on
HTML Lists
HTML lists are used to organize and display content in a structured manner. Learn how to create ordered, unordered, and description lists in HTML.
iFrames in HTML
iFrames, or Inline Frames, are an integral part of modern web development. They allow you to embed another HTML page within your current page.