li (List) Element

<li> (List Element)


LI Element is used to create list items in a HTML document.
</ol> <ul>
Element Specific attributes supported by this tag are:
value number Defines value of a list item. The value must be a number. It can be used only if the list is an ordered list.

Example Code 1:

Result 1:

  • Indigo
  • Jet Airways
  • Air India

Example Code 2:

Result 2:

  1. Indigo
  2. Jet Airways
  3. Air India
  • Use this element to highlight and differentiate the list item from rest of the content.
  • It is compulsory to place this element inside the <ul> or <ol>.
It is available in older versions of HTML5.
It supports both Global Attributes and Event Attributes in HTML5.


It will function in all the browsers.

Ask Questions

Ask Question