HTML provides the <li> tag which is used to created different types of lists. These lists can be ordered or in ordered and <li> tag is used as a child item for the <ol>, <ul> and <menu> tags which are explained below.
HTML提供了<li>标记,该标记用于创建不同类型的列表。 这些列表可以按顺序排列,也可以按顺序排列,并且<li>标记用作<ol>,<ul>和<menu>标记的子项,下面将对其进行说明。
使用<li>和<ol>标签创建有序列表 (Create Ordered List with <li> and <ol> Tags)
Ordered list and items can be created by using <ol> and <li> tags. <ol> tag is used to create the ordered list and <li> tag is used to add an item to this list. The ordered list means the items will be numbered by default and these numbers are will start from 1 by default and increase.
可以使用<ol>和<li>标记创建有序列表和项目。 <ol>标记用于创建有序列表,而<li>标记用于向该列表添加项目。 有序列表表示默认情况下将对项目编号,并且这些编号将默认从1开始并增加。
<html>
<body>
<h1>Ordered List with Number</h1>
<p>The ol element defines an ordered list:</p>
<ol>
<li>Turkey</li>
<li>USA</li>
<li>UK</li>
<li>Germany</li>
<li>Italy</li>
</ol>
</body>
</html>
讯享网

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/54641.html