html The li tag is used to define list items. The
#html How to use the li tag?
Function: Define list items.
Note: The
Note: Please use CSS to define the types of lists and list items.
html li tag usage 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>
Effect output:
The above is the detailed content of How to use html li tag. For more information, please follow other related articles on the PHP Chinese website!