Definition Of Nested List In Html
Html also supports description lists.
Definition of nested list in html. Start by creating a list. The second level lists sit inside the top level list not in the list items. This figure shows how a browser reflects this nesting in its display. It can be ordered or unordered.
The trick to marking nested lists up correctly in html is to recognize that the sublist is actually a child of a list item and not of a list. The dl element is used in conjunction with the dt element which specify a term and the dd element which specify the term s definition. We can create a list inside another list which will be termed as nested list. The dl tag defines the description list the dt tag defines the term name and the dd tag describes each term.
Html ordered list or numbered list in the ordered html lists all the list items are marked with numbers by default. The html ol tag defines an ordered list. The description list is created using dl element. In this case the so called nested lists a list nested in another list are used.
A description list is a list of items with a description or definition of each item. All nested lists follow the same markup pattern. A nested list or a sublist is a list within a list. Description list or definition list dl note.
Each list item in the top level ordered list is followed by a complete second level list. Common reasons nested lists arise are. Often the information has a complex branched structure which on the one hand will be difficult to display as one list on the other it is impossible to break into several separate lists. A dd is a block element so an inner list inside one of these is fine.
They re matrices a list of rows where each row is itself a list or a list of columns where each column is itself a list the proper way to make html nested list is with the nested ul as a child of the li to which it belongs. A nested list is simply a list that occurs as an element of another list which may of course itself be an element of another list etc.