有序列表是一组带有编号的项目。它使您能够在上下文中控制序列号。允许我们将一组相关的项目分组在列表中。
HTML support ordered list, unordered list and we have to use the tag, to create ordered list in HTML. The tag defines the ordered list. We use tag to start list of items. The list of items can be marked as numbers, lowercase letters uppercase letters, roman letters, etc.
默认顺序是在上下文中对列表项进行编号。
The tag should be placed inside the tag to create the list of items.
We use type attribute of the tag, for creating an ordered list with numbers.
立即学习“前端免费学习笔记(深入)”;
We can also use to create ordered list numbered with uppercase roman numbers.

Syntax
Following is the syntax to create an ordered list items numbered with uppercase roman numbers in HTML.
- Item in list…
- Item in list…
- Item in list…
Example 1
给出以下是一个在HTML中创建使用大写罗马数字编号的有序列表项的示例。
- Abdul
- Jason
- Yadav
- Lokesh
以下是上述示例程序的输出。
Example 2
Let us look at another example to create an ordered list with uppercase roman numbers as bullets −
World Cup Teams List of teams for World Cup
- India
- Australia
- South Africa
- New Zealand
- Pakistan
- Srilanka
- West Indies
- Bangladesh
在实施上述HTML代码后,输出结果如下 –
以上就是如何在HTML中创建一个有序列表,其中列表项使用大写罗马数字编号?的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1551538.html
微信扫一扫
支付宝扫一扫