You are here : htmlHTML 5li

<li> - HTML 5

The <li> tag defines a list item.

The <li> tag is used in ordered lists(<ul>), and in menu lists (<menu>).


Syntax

    <ol>             <li>Coffee</li>             <li>Tea</li>             <li>Milk</li>      </ol>      <ul>             <li>Coffee</li>             <li>Tea</li>             <li>Milk</li>      </ul>


Example

    <ol>             <li>Coffee</li>             <li>Tea</li>             <li>Milk</li>      </ol>      <ul>             <li>Coffee</li>             <li>Tea</li>             <li>Milk</li>      </ul>


Output / Return Value


Limitations


Alternatives / See Also


Reference