<li>
An item of a `<ul>`, `<ol>` or `<menu>` list.
Syntax
<li>Item</li>Attributes
| Parameter | Type | Description |
|---|---|---|
| value | number | Optional. The item's number in an `<ol>`. |
Examples
A nested list inside an item:
<ul>
<li>Hot drinks
<ul>
<li>Espresso</li>
<li>Tea</li>
</ul>
</li>
<li>Cakes</li>
</ul>Notes
A nested list goes inside an <li>, not between items. An item may contain anything: links, images, paragraphs.
See also
Related recipes
In the tutorial
- Lists — Bulleted and numbered lists, numbering options, nested lists and description lists in HTML.