HTML li tag
HTML li stands for list item. <li> tag takes part in making lists. This tag can be used in ordered or unordered lists.
<ol>
  <li> Computer </li>
  <li> Laptop </li>
  <li> Tablet </li>
  <li> Chair</li>
 </ol>
</>
- Computer
 - Laptop
 - Tablet
 - Chair
 
Tag Uses
Specific uses of <li> tagas ordered lists
Ordered lists are used where the order of items is necessary.
For example, the directions or instructions in a recipe where the sequence of instructions is necessary.
as unordered lists
The unordered lists are used where the order of items is not necessary.
For example, ingredients in a recipe.
- 
Example
- 2/3 cups of ice
 - 2/3 cups of milk
 - 2 tbsp raspberry syrup
 - 2 tbsp vanilla syrup
 - 2 scoops vanilla bean ice cream
 
 
Tag omission
The end tag (</li>) may be omitted.
Global Attributes
All the global attributes are applicable on li element.
Next Previous
Was this article helpful?
