CBSE Class 10 Computer Applications Question 33 of 79

Basic HTML Elements — Question 6

Back to all questions
6
Question

Question 6

What do you mean by nesting of list?

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