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:
<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:
<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