There are three types of lists in HTML:
- Unordered lists, which are like lists of bullet points
- Ordered lists, which use a sequence of numbers or letters instead of bullet points
- Definition lists, which allow you to specify a term and its definition
1. Unordered List
If you want to make a list of bullet points, you write the list within the <ul> element (which stands for unordered list). Each bullet point or line you want to write should then be contained between opening <li> tags and closing </li> tags (the li stands for list item).
<li>Yet another item</li>
2. Ordered List
In an ordered list, rather than prefixing each point with a bullet point, you can use either numbers (1, 2, 3), letters (A, B, C), or Roman numerals (i, ii, iii) to prefix the list item. An ordered list is contained inside the <ol> element. Each item in the list should then be nested inside the <ol> element and contained between opening <li> and closing </li> tags.
3. Definition Lists
The definition list is a special kind of list for providing terms followed by a short text definition or description for them. Definition lists are contained inside the <dl> element. The <dl> element then contains alternating <dt> and <dd> elements. The content of the <dt> element is the term you will be defining. The <dd> element contains the definition of the previous <dt> element.
<dd>Bean-based caffeinated beverage </dd>
<dd>Leaf-based caffeinated beverage</dd>