Skip to main content

html-tags.com

<li>

A single item of a ul, ol, or menu.

Baseline: Widely available · Grouping content

When to use it

Only as a direct child of a list element; the value attribute overrides an ol item's number.

When not to

Never orphan an li outside a list — it violates the content model.

Key attributes

value
overrides numbering in an ol

Example

  1. Answer everything
  2. Jump the count
<ol start='41'>
  <li>Answer everything</li>
  <li value='50'>Jump the count</li>
</ol>
Rendered live above, source below.

Authoritative references