The li tag

The li tag specifies an item in an ordered list ol or an unordered list ul. The tag is not used outside of lists.

Example . List ul

Let's see what the ul list looks like:

html<ul>
  <li>list item</li>
  <li>list item</li>
  <li>list item</li>
  <li>list item</li>
  <li>list item</li>
</ul>

Результат:

Example . List ol

Now let's see what the ol list looks like:

html<ol>
  <li>list item</li>
  <li>list item</li>
  <li>list item</li>
  <li>list item</li>
  <li>list item</li>
</ol>

Результат:

See also

  • tag nav,
    with which menus are created