Nested Lists - HTML

You can nest lists of the same or different types. For example, suppose you have a bulleted list and need a numbered list beneath one of the items, as shown: Send us a letter detailing the problem. Be sure to include the following:

  1. Your name
  2. Your order number
  3. Your contact information
  4. A detailed description of the problem

In such a case, you would nest an ordered list inside an unordered one, as shown in the following code:

You can nest different types of lists within one another.

You can nest different types of lists within one another.
Note that the nested list does not span any open or close tags—it starts after the close tag of the parent’s item and before any other tags in the parent list. It is also formatted (indented) to make it easier to identify in the code. Using this method, you can nest any list within any other list.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

HTML Topics