HTML lists are define the item list .
Lists are used to the representation of Items ordered and unordered.
There are two types of list-
1. Ordered List
2. Unordered List
Ordered list defines the item within unique identity like -
1. Item .
2. Item2
3. Item3
4. Item
A.Item
B.Item
C.Item
D.Item
I.Item
II.Item
Iii.item
a. Item
b. Item
i.item
ii.item
List type like(A-Z,a-z,1-10,I-II,i-ii) is specified the type tag -
To initiate the order list you need to specify the
Same for all types -
type="A" , type="I" , type="a", type="I"
List Start Element - (List counting)
Start elements is defines the start position of list -
The following example of start element .
Unordered lists are opposite to the ordered list . In the unordered list there are no unique number or character to specify it .
The unordered list represent on y the dost(.)
Example-
.item
.item
.item
The following example will show you the ordered and unordered list -
<!DOCTYPE html>
<html>
<head>
<title>HTML Lists </title>
</head>
<body>
<h1> Ordred List </h2>
- Samsung
- Nokia
- Redmi
Using type attribute
- Samsung
- Nokia
- Redmi
Unordered List
- Samsung
- Nokia
- Redmi
</body>
</html>
Run