HTML Unordered List is used to group a set of related items in Unordered List. Unordered List displays elements in bulleted format. The HTML <ul> tag is used for unordered list. HTML Ordered List is also called as HTML Bulleted List.
An unordered list can not be displayed in any particular order. There can be 4 types of Bulleted list as below.
- disc
- circle
- square
- none
There are 4 types of attributes in <ul> tag to display unordered lists.
Type | Description |
type="disc" | This is the default type. The list items will be displayed with bullets. |
type="circle" | The list items will be displayed with uppercase circles. |
type="square" | The list items will be displayed with lowercase squares. |
type="none" | The list items will be displayed with no any marker. |
Syntax for Unordered List or BulletedList (ul) :
<ul type="circle">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
</ul>
Let's see below example to understand HTML unordered Lists or Bulleted lists in details.
Comments