Menu
The li
tag, or List Item element, is used to define a list item inside ordered lists (<ol>
), unordered lists (<ul>
), and in menu lists (<menu>
).
In <ul>
and <menu>
, list items are rendered with bullet points. In <ol>
, list items are rendered with numbers or letters.
<ol>
<li>A list item in an ordered list</li>
<li>Another list item in an ordered list</li>
<li>And another list item in an ordered list</li>
</ol>
<ul>
<li>A list item in an unordered list</li>
<li>Another list item in an unordered list</li>
<li>And another list item in an unordered list</li>
</ul>
value
Only used in ordered <ol>
lists, this attribute designates the start value of a list item. Subsequent list items will follow with incremental numbers.
Have a code example of <li>
? Submit a codepen.io demo and we'll showcase it here ↴