CBSE Class 10 Computer Applications Question 24 of 31

Solved Sample Paper 3 — Question 2

Back to all questions
2
Question

Question 21

Observe the following list and write the code to generate it.

  1. Fruits
    1. Mango
    2. Orange
  2. Vegetables
    1. Cabbage
    2. Capsicum
      1. Green Capsicum
      2. Yellow Capsicum
      3. Red Capsicum
Answer
<OL TYPE = "1">
    <LI>Fruits</LI>
    <OL TYPE = "1">    
        <LI>Mango</LI>
        <LI>Orange</LI>
    </OL>
    <LI>Vegetables</LI>
    <OL TYPE = "1">
        <LI>Cabbage</LI>
        <LI>Capsicum</LI>
        <OL TYPE = "1">
            <LI>Green Capsicum</LI>
            <LI>Yellow Capsicum</LI>
            <LI>Red Capsicum</LI>
        </OL>
    </OL>
</OL>