<li>

The <li> tag renders a list item. That is, if you have an ordered (<ol>) or unordered (<ul>) list, every item in the list is surrounded by an <li> tag.

Syntax

Variants

There are 3 variants of <li>.

This tag cannot be the child of any other. This tag cannot be the child of any other.

Examples