当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <ol>标签
The <ol> tag defines the start of an ordered list.
<ol>标签可定义有序列表的起始
The "compact", "start" and "type" attributes of the ol element were deprecated in HTML 4.01.
在HTML4.01中ol元素的"compact","start"和"type"属性已经不再推荐使用
The "compact", "start" and "type" attributes of the ol element are not supported in XHTML 1.0 Strict DTD.
XHTML1.0严密型DTD将不再支持这些属性。
Tip: Use styles to define the type of list.
提示:使用样式来定义列表类型
代码 | 输出结果 |
---|---|
<ol> <li>Coffee</li> <li>Tea</li> </ol> |
|
DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
下表中的DTD列指明了被支持的DTD属性。S=Strict(精确的),T=Transitional(传统的),F=Frameset(框架)
属性 | 值 | 描述 | DTD |
---|---|---|---|
compact | compact_rendering | Deprecated. Use styles instead 不推荐。使用样式做替代 | TF |
start | start_on_number | Specifies the number to start on. Deprecated. Use styles instead 指定起始数。不推荐。使用样式做替代 | TF |
type | A a I i 1 | Specifies the type of the list. Deprecated. Use styles instead 指定列表的类型。不推荐,使用样式做替代 | TF |
id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard Attributes.
查看完整的属性
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
查看完整的属性
An ordered list
An ordered list.
有序列表