Difference between ordered list and unordered list in html
Answers
Explanation:
ordered lists are those which have a specialised character in them .
eg - (ol)
unordered lists are those which are located to show the page with numbers ,symbols.
eg-(ul)
Answer:
Difference between the ordered list and unordered list in HTML.
Explanation:
Ordered List:
1) The Ordered list is represented by <ol> in Html.
2) The ordered list also called a numbered list.
3) It has an item in a particular order.
For example:
<ol>
<li>Fasten your seatbelt</li>
<li>Starts the car's engine</li>
<li>Look around and go</li>
</ol>
Output:
Fasten your seatbelt
Starts the car's engine
Look around and go
Unordered list:
1) The unordered list is represented by <ul> in Html.
2) An unordered list also called a bullet list.
3) It does not have any specific order.
For example:
<ul>
<li>Chocolate Cake</li>
<li>Black Forest Cake</li>
<li>Pineapple Cake</li>
</ul>
Output:
Chocolate Cake
Black Forest Cake
Pineapple Cake