在HTML中设置有序列表的起始值?

原创
ithorizon 5个月前 (10-19) 阅读数 31 #HTML

使用start属性来设置HTML中有序列表的起始值,即:

<ol start = " ">

在上面添加您想要开始的位置的值。

示例

您可以尝试运行以下代码来实现start属性 -

<!DOCTYPE html>
<html>
   <head>
      <title>HTML ol Tag</title>
   </head>
   <body>
      <p>Programming Languages Rank Usage:</p><p><span>立即学习</span>“<a href="https://pan.quark.cn/s/cb6835dc7db1" style="text-decoration: underline !important; color: blue; font-weight: bolder;" rel="nofollow" target="_blank">前端免费学习笔记(深入)</a>”;</p>
      <ol start = "5">
         <li>Java</li>
         <li>C++</li>
         <li>C</li>
      </ol>
   </body>
</html>

以上就是在HTML中设置有序列表的起始值?的详细内容,更多请关注IT视界其它相关文章!



热门