UK [li:] US [li:]

abbr.Liechtenstein Liechtenstein

htmlli tag syntax

Function:Define list items.

Description: <li> tag can be used in ordered lists (<ol>) and unordered lists (<ul>).

Note: Please use CSS to define the types of lists and list items.

htmlli tag example

<html>
<body>

<p>有序列表:</p>
<ol>
  <li>打开冰箱门</li>
  <li>把大象放进去</li>
  <li>关上冰箱门</li>
</ol>

<p>无序列表:</p>
<ul>
  <li>雪碧</li>
  <li>可乐</li>
  <li>凉茶</li>
</ul>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance