HTML start 属性

htmlweb developmentfront end technology更新于 2024/5/23 8:44:17

HTML start 属性定义 HTML 文档中有序列表中第一个列表项的起始值。

语法

以下是语法 −

<ol start=”number”></ol>

让我们看一个 HTML start 属性的示例 −

示例

<!DOCTYPE html>
<html>
<style>
   body {
      color: #000;
      height: 100vh;
      background-color: #8BC6EC;
      background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
   }
</style>
<body>
<h1>HTML reversed Demo</h1>
<p>List of subjects: </p>
<ol start="10">
<li>Physics</li>
<li>Chemistry</li>
<li>Maths</li>
<li>Biology</li>
<li>Economics</li>
</ol>
</body>
</html>

输出


相关文章


有用资源