Hi Guys, this is my day-2 of learning HTML. Today I learned about the different types of list in HTML.
Types of List:
- Ordered List
- Unordered List
- Description List
Ordered List:
- 1. Ordered list is used when we want the items to be listed in the sequential order.
-
<ol>tag refers to the Ordered List - 2. Here, we can order the items in Numbers, Alphabets and Roman Numerals using type attribute.
- 3. We can also reverse the order of the List using reversed attribute.
- 4. We can also specify the starting of the List using start attribute.
Example:
Unordered List:
- 1. Unordered list is used when we don't want the items to be displayed in specific order.
-
<ul>tag refers to the Unordered List. - 2. By default , the items are displayed in disc.
- 3. We can change the style using type attribute.
- 4. The other available styles are square, and circle.
Example:
Description List:
Description List is used to display the descriptive term along with the definitions.
<dl> tag refers to the Description List.
<dt> tag refers to the Description term.
<dd> tag refers to the Description Definitions.
Bye Guys...



Top comments (0)