HTML Lists
In HTML, lists are used to organize and structure content in a specific order. There are three main types of lists: ordered lists, unordered lists, and definition lists.
Ordered Lists (<ol>):
- Ordered lists are used when the sequence of items matters, and each item is numbered.
- Items within an ordered list are represented by the <li> (list item) element.
Unordered Lists (<ul>):
- Unordered lists are used when the sequence of items doesn't matter, and each item is typically preceded by a bullet point
- Items within an unordered list are also represented by the <li> element.
Definition Lists (<dl>):
- Definition lists are used to define terms and provide their corresponding definitions.
- They consist of terms (<dt> - definition term) and their definitions (<dd> - definition description).