Listr in html order list unorder list  definite list




Youtube

Here are the different types of lists in HTML:

1. *Ordered List* (ol)

    - Used for lists where the order of items matters
    - Each item is numbered
    - Example:
```
<ol>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ol>
```

1. *Unordered List* (ul)

    - Used for lists where the order of items doesn't matter
    - Each item is bullet-pointed
    - Example:
```
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>
```

1. *Definition List* (dl)

    - Used for lists of terms and their definitions
    - Each term is followed by a definition
    - Example:
```
<dl>
  <dt>Term 1</dt>
  <dd>Definition 1</dd>
  <dt>Term 2</dt>
  <dd>Definition 2</dd>
</dl>
```

Note:

- `<li>` is used for list items in all types of lists
- `<dt>` is used for terms in definition lists
- `<dd>` is used for definitions in definition lists

You can also use attributes to customize the appearance and behavior of lists, such as:

- `type` (for ordered lists): specifies the type of numbering (e.g. "A" for uppercase letters, "i" for lowercase Roman numerals)
- `start` (for ordered lists): specifies the starting number
- `reversed` (for ordered lists): specifies whether the list should be in reverse order

For example:
```
<ol type="A" start="3">
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ol>
```