Chapter 14
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
The list items are marked with bullets (typically small black circles).
The UnOrdered list Output like
- Coffee
- Milk
There are different types in UnOrdered list
- Disc Bullet list
- Circle Bullet list
- Square Bullet list
Example :14
<html>
<body>
<h4>Disc bullets list:</h4>
<ul style="list-style-type:disc">
<li>Apples</li>
<li>Bananas</li>
<li>Lemons</li>
<li>Oranges</li>
</ul>
<h4>Circle bullets list:</h4>
<ul style="list-style-type:circle">
<li>Apples</li>
<li>Bananas</li>
<li>Lemons</li>
<li>Oranges</li>
</ul>
<h4>Square bullets list:</h4>
<ul style="list-style-type:square">
<li>Apples</li>
<li>Bananas</li>
<li>Lemons</li>
<li>Oranges</li>
</ul>
</body>
</html>
Output is :
Disc bullets list:
- Apples
- Bananas
- Lemons
- Oranges
Circle bullets list:
- Apples
- Bananas
- Lemons
- Oranges
Square bullets list:
- Apples
- Bananas
- Lemons
- Oranges
No comments:
Post a Comment