How will you nest an unordered list inside an ordered list
Answers
Answer:
To nest an ordered list into an ordered list first, we need to create an ordered list. Where the list item shall be having some sequence of numbers, that may be ordered as alphabetical format or in numerical format.
Explanation:
When the need arises of sub-dividing the list items mentioned, then there is the use of an unordered list can be done. In the unordered list system, the list item is recognized by a bullet sign or a circle or a square box.
Explanation:
Unordered list is a list which is described in a bullet fashion where as ordered list are denoted in a numerical fashion.
To insert/nest an unordered list inside an ordered list, you need to embed the unordered list inside the li tag which is already embedded inside the ordered list.
For example:
<ol>
<li>Animals</li>
<li>Land Animals:
<ul>
<li>Lion</li>
<li>Elephant</li>
<li>Monkey</li>
</ul>
</li>
<li>Water Animals:
<ul>
<li>Fish</li>
<li>Sea Horse</li>
</ul>
</li>
</ol>