有序列表
<html >
<head>
<meta charset="UTF-8">
<title>网页设计</title>
</head>
<body>
你最喜欢的的水果
<ol type="1" reversed="reversed">
<li>苹果</li>
<li>橘子</li>
<li>葡萄</li>
<li>火龙果</li>
<li>水蜜桃</li>
</ol>
</body>
</html>
效果如下:
<ol type="a">共有五种排序方式type的值分别是1,a,A,i,I
如果你想从第2个开始排序如下:
<html >
<head>
<meta charset="UTF-8">
<title>网页设计</title>
</head>
<body>
你最喜欢的的水果
<ol type="1" start = "2">
<li>苹果</li>
<li>橘子</li>
<li>葡萄</li>
<li>火龙果</li>
<li>水蜜桃</li>
</ol>
</body>
</html>
<html >
<head>
<meta charset="UTF-8">
<title>网页设计</title>
</head>
<body>
你最喜欢的的水果
<ol type="a" start = "2">
<li>苹果</li>
<li>橘子</li>
<li>葡萄</li>
<li>火龙果</li>
<li>水蜜桃</li>
</ol>
</body>
</html>
start表示从第几个开始排序。