HTML - List

In HTML list are used when the data are to be mentioned in the form of points.there are basic three types of lists are available in HTML.

Ordered List

Unordered List

Definition List

Ordered List

List having numbered items are known as ordered lists.they are used when the items the list have a natural order.

Ordered list begin with the <ol> tag, and each item uses the standard <li> tag. </li> tag is optional.if needed,you can create a list heading by using the <li> tag.close the list with the </ol> tag to signal the end of the list.

Example

Output on Webpage

Item List

1 Mouse

2 Mobile

3 Keyboard

4 CPU

5 Leptop

Unordered List

These list are characterized by list items that do not have numbers.they are used when the points in the list have no particular order.unordered list is just like a bullet list of ms word.unordered lists begin with the <ul> tag.and each items uses the standard <li> tah and end with </li> tag.

Use the type attribute to change the bullet used in the list.its value can be one of disc,square,circle.