Skip to content

<li> - List Item

List item HTML 2.0

The <li> element represents a list item and must be contained within a parent list element: <ul> (unordered list), <ol> (ordered list), or <menu>. It defines individual items in a list structure.

Result
<!-- In unordered lists -->
<ul>
<li>List item</li>
</ul>
<!-- In ordered lists -->
<ol>
<li>List item</li>
</ol>
<!-- In menu lists -->
<menu>
<li>Menu item</li>
</menu>

The <li> element must be a direct child of <ul>, <ol>, or <menu>.

Specifies a custom number for the list item in <ol>:

Result

The <li> element supports all global attributes like id, class, and style.

<li id="item-1" class="highlight">Important item</li>
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result

Screen readers announce list items with their position:

<!-- Screen reader: "List, 3 items. Bullet, First item. Bullet, Second item. Bullet, Third item." -->
<ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>

Make list items descriptive and clear:

<ul>
<li>Click the blue "Submit" button at the bottom of the form</li>
<li>Wait for the confirmation email to arrive</li>
<li>Click the verification link in the email</li>
</ul>

Ensure interactive elements are accessible:

Result
<ul>
<li>Fast performance</li>
<li>Easy to use</li>
<li>Secure by default</li>
</ul>

Keep items grammatically consistent:

<ul>
<li>Install the software</li>
<li>Configure the settings</li>
<li>Launch the application</li>
</ul>
<ul>
<li>Parent item
<ul>
<li>Child item</li>
</ul>
</li>
</ul>
BrowserVersionNotes
Chrome1+Full support
Firefox1+Full support
Safari1+Full support
Edge12+Full support
IE3+Full support

The <li> element has been supported since the early days of HTML.

Description list (uses <dt> and <dd> instead of <li>). Learn more →