PHP前端开发

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

百变鹏仔 4周前 (09-22) #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>