Computer Applications

Differentiate between Ordered and Unordered list with the help of an example.

HTML Intro

32 Likes

Answer

Difference between Ordered and Unordered list:

S.
No.
Ordered ListUnordered List
1.The ordered list is used to display the list of items in a specific order.The unordered list is used when the items are not to be displayed in any particular order.
2.<OL> tag is used to create ordered list.<UL> tag is used to create unordered list.
3.E.g.
<OL>
<LI>Apple</LI>
<LI>Mango</LI>
<LI>Banana</LI>
</OL>

Output
  1. Apple
  2. Mango
  3. Banana
E.g.
<UL>
<LI>Apple</LI>
<LI>Mango</LI>
<LI>Banana</LI>
</UL>

Output
  • Apple
  • Mango
  • Banana

Answered By

11 Likes


Related Questions