All lists contain one or more list items.There are differnt type of list in Html.
Unordered list
Ordered list
Description list
Unordered List
An unordered list is that in which order of list does't matter.It start with ul tag and all list items specified inside li tag.
Different type of list item marker use in unorder list as follows:-
disc-set list item to bullet
circle-set list item to circle
square-set list item to square
none-list item will not be marked
Example-disc
Output:
Example-circle
Output:
Example-square
Output:
Example-none
Output:
Ordered List
An ordered list is that in which order of list matter.It start with ol tag and all list items specified inside li tag.
Ordered List-List item marker
Different type of list item marker use in Order list are as follows-
Numbers-set list item mark with number
Uppercase letter-list item mark with uppercase letter
lowercase letter- list item mark with lowercase letter
Uppercase Roman no.-list item mark with uppercase Roman no.
lowercase Roman no.-list item mark with lowercase Roman no.
Example-Numbers
Output:
Example-Uppercase letter
Output:
Example-Lowercase letter
Output:
Example-Uppercase Roman No.
Output:
Example-Lowercase Roman No.
Output:
Description List
HTML description list displays element in definition form.Following tags used to define description list