i

Learn HTML and CSS in 10 Days

Nested Lists

One of the powerful features of lists is their ability to get nested. Lists can be placed inside another list. However, the possibility to nestlists uncertainty doesn't give free rein to do as such. Lists should, in any case, be saved explicitly for where they hold the most semantic worth.

One technique with using the nested lists is by getting accustomed to the beginning and the end of each list with the list items. Talking about the ordered and unordered list, the only element that will be inside the and the is the element. Thus, the direct child of the and the element is the element.

If you want to nest a list rather than closing an  element, start with a new one. As soon as the nested list is closed after completion, close the wrapping list item and go with the original one.