The HTML lists tag is used for specifying a list item is ordered, unordered and menu lists. Lists commonly are found in documents, including web pages. They are an easy and effective way to itemise such things as elements, components, or ingredients. The most common HTML lists are ordered and unordered lists.
There are 3 types of lists that can be created in HTML:
- Ordered List – used to display each item which is preceded by Number or Alphabet
- Unordered List – used to display each item with a bullet by default, and does not use numbers or alphabets
- Definition List – used to display each item as terms and its definitions
The ordered tag as the name suggests defines an ordered list (numerical or alphabetical).
The unordered tag is used to define an unordered list.
The description list tag is used to define a description list.
Inside a dl list we can use a dt tag (description term tag), which defines a term or a name in a description list. Description describes tag, dd tag is used to describe a term or a name mentioned in the dt tag.
The List item tag is used inside any list to define a list item.