HTML Dog
Skip to navigation

HTML Tag: li

List item. Used in conjunction with ul or ol to make an unordered list or ordered list respectively.

Optional Attributes

Attribute Description Possible values
value The ordinal value of the list item. Only an option when the item is a child of an ol. Number.
Global attributes

Example


<ul>
    <li>This</li>
    <li>That</li>
    <li>The other</li>
</ul>

<ol>
    <li>First item</li>
    <li>Second item</li>
    <li value="46">Fourty-sixth item</li>
</ol>