KnowledgeBoat Logo

Computer Applications

What do you mean by nesting of list?

HTML Intro

8 Likes

Answer

A list created within a list is called a Nested list. Ordered and Unordered list can be nested within each other to form a multilevel list. To create a nested list, we add a new list within a list. Consider the given example,

<OL>
<LI> Input Devices
    <UL>
    <LI> Keyboard </LI> 
    <LI> Mouse </LI>
    <LI> Joystick </LI>
    </UL>
<LI> Output Devices
    <UL>
    <LI> Monitor </LI> 
    <LI> Speaker </LI>
    <LI> Printer </LI>
    </UL>
</OL>

The nested list will be displayed as follows:

  1. Input Devices
    • Keyboard
    • Mouse
    • Joystick
  2. Output Devices
    • Monitor
    • Speaker
    • Printer

Answered By

5 Likes


Related Questions