· Each list starts with <li>
· List work in three different types, they all are comes in the list tags.
Types:
1. Ordered
2. Unordered
3. Definition
Ordered list:
· Order list starts with <ol> and ends with </ol>.
· This list produced any order .
· The attributes and properties are produce the different order.
· <li> used to specify the items.
Example:
<ol> order
<li> alpha
<li>beta
<li>gama
</ol>
Example explanation:
- Text between <ol> and </ol> tag provide any order like 1,2,3....
- it have attribute - type
- <li> tag says these are list items.
Unordered list:
· unorder list starts with <ul> and ends with </ul>.
· <li> used to specify the items.
· It is show any bullets, is based on the Atrribute 'type'
Ex: <ul type='square'>
Example:
<ul> fruits
<li> apple
<li>mango
<li>banana
</ul>
Definition lists:
· Is use the tag <dl> and< /dl>
· This list contain two parts
· Definition term <dt>. It used to set side head of para
· Definition description <dd> it is used to write para
Example
<dl>
<dt>topic-paragraph title
<dd> contents about the topic
</dl>