HTML list item - how to use <li> tag

The HTML <li> tag is used to define list items in ordered, unordered and menu lists.


The li tag supports the global and event attributes.

Defines a value for the list item. The list items will be numbered using this value


<ol> <li>India</li> <li>China</li> <li>USA</li> </ol> <ul> <li>India</li> <li>China</li> <li>USA</li> </ul>

Related HTML tags:

  • <ul> - used to define unordered list
  • <ol> - used to define ordered list
  • <menu> - used to define menu list

Useful Links:

Learn more about styling list, nested lists, and other properties of lists.