实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<p><b>Note:</b> The type attribute of the ul tag is deprecated in HTML 4, and is not supported in HTML5.
6
Therefore we have used the style attribute and the CSS list-style-type property, to define different types of unordered lists below:</p>
7
8
<h4>Disc bullets list:</h4>
9
<ul style="list-style-type:disc">
10
 <li>Apples</li>
11
 <li>Bananas</li>
12
 <li>Lemons</li>
13
 <li>Oranges</li>
14
</ul>  
15
16
<h4>Circle bullets list:</h4>
17
<ul style="list-style-type:circle">
18
 <li>Apples</li>
19
 <li>Bananas</li>
20
 <li>Lemons</li>
21
 <li>Oranges</li>
22
</ul>  
23
24
<h4>Square bullets list:</h4>
25
<ul style="list-style-type:square">
26
 <li>Apples</li>
27
 <li>Bananas</li>
28
 <li>Lemons</li>
29
 <li>Oranges</li>
30
</ul>
31
32
</body>
33
</html>