[HTML5] li tag --Create a list item

You can use the li tag to create items in the list.

<li> </li>

Unnumbered list

To create an unnumbered list, place the li tag inside the ul tag.

  • Item 1
  • Item 2
  • Item 3
<ul>
  <li> Item 1 </li>
  <li> Item 2 </li>
  <li> Item 3 </li>
</ul>

Numbered list

To create a numbered list, place the li tag inside the ol tag.

  1. Item 1
  2. Item 2
  3. Item 3
<ol>
  <li> Item 1 </li>
  <li> Item 2 </li>
  <li> Item 3 </li>
</ol>

For details on how to create a list, refer to the following articles.

Master how to create a list

Associated Information