HTML reserved 属性
htmlweb developmentfront end technology更新于 2024/5/23 10:20:17
HTML reserved 属性定义 ol HTML 元素中的列表顺序在 HTML 文档中应为降序。
语法
以下是语法 −
<ol reserved></ol>
让我们看一个 HTML reserved 属性的示例 −
示例
<!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 reversed>
<li>Physics</li>
<li>Chemistry</li>
<li>Maths</li>
<li>Biology</li>
<li>Economics</li>
</ol>
</body>
</html>
输出

相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

