New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

# li

Defines a list item within an ordered list <ol> or unordered list <ul>.

Example: Copy

  1. Step one
  2. Step two
  3. ????
  4. PROFIT!!!
<ol>
  <li>Step one</li>
  <li>Step two</li>
  <li>????</li>
  <li>PROFIT!!!</li>
</ol>

Example: Copy

My shopping list:

  • Milk
  • Bread
  • Chocolate
  • More chocolate
<p>My shopping list:</p>
<ul>
  <li>Milk</li>
  <li>Bread</li>
  <li>Chocolate</li>
  <li>More chocolate</li>
</ul>