在 HTML 中创建有序列表
htmlweb developmentfront end technology更新于 2024/7/29 14:04:17
HTML <ol> 标签用于创建有序列表。您可以尝试运行以下代码,使用 <ol> 标签 − 创建有序列表
HTML <ol> 标签支持以下附加属性 −
| 属性 | 值 | 描述 |
|---|---|---|
| compact | autofocus | Defines if compact rendering is required. |
| reversed | reversed | Specifies the order of the list (descending). |
| start | number | Specifies the initial number to start the list. |
| type | A a I i 1 | Specifies the style of the list. |
示例
您可以尝试运行以下代码,使用 <ol> 标签创建有序列表 −
<!DOCTYPE html> <html> <head> <title>HTML ol Tag</title> </head> <body> <p>Programming Languages:</p> <ol> <li>Java</li> <li>C++</li> <li>C</li> </ol> </body> </html>
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

