📅  最后修改于: 2020-11-01 07:58:17             🧑  作者: Mango
HTML排序列表或编号列表以编号格式显示元素。 HTML ol标签用于有序列表。我们可以使用有序列表以数字顺序格式或字母顺序格式或强调顺序的任何格式来表示项目。编号列表可以有不同类型:
为了表示不同的有序列表,有5种类型的属性
Type | Description |
---|---|
Type “1” | This is the default type. In this type, the list items are numbered with numbers. |
Type “I” | In this type, the list items are numbered with upper case roman numbers. |
Type “i” | In this type, the list items are numbered with lower case roman numbers. |
Type “A” | In this type, the list items are numbered with upper case letters. |
Type “a” | In this type, the list items are numbered with lower case letters. |
让我们看一下HTML排序列表的示例,该列表在编号列表中显示4个主题。这里我们没有定义type =“ 1″,因为它是默认类型。
- HTML
- Java
- JavaScript
- SQL
输出:
让我们看一下以大写罗马数字显示列表的示例。
- HTML
- Java
- JavaScript
- SQL
输出:
让我们看一下以罗马数字小写显示列表的示例。
- HTML
- Java
- JavaScript
- SQL
输出:
让我们看一下以字母大写显示列表的示例。
- HTML
- Java
- JavaScript
- SQL
输出:
让我们看一下以字母小写显示列表的示例。
- HTML
- Java
- JavaScript
- SQL
输出:
start属性与ol标记一起使用以指定从何处开始列表项。
- HTML
- Java
- JavaScript
- SQL
输出:
这是HTML的布尔属性
- HTML
- Java
- JavaScript
- SQL