English

How will you nest an unordered list inside an ordered list?

Advertisements
Advertisements

Question

How will you nest an unordered list inside an ordered list?

Code Writing
Advertisements

Solution

We can nest an unordered list inside an ordered list in the following manner:

<OL>
    <LI>Fruits
        <UL>
            <LI>Apples</LI>
            <LI>Grapes</LI>
            <LI>Bananas</LI>
        </UL>
    </LI>

    <LI>Vegetables
        <UL>
            <LI>Potatoes</LI>
            <LI>Cabbages</LI>
            <LI>Gourd</LI>
        </UL>
    </LI>

    <LI>Dairy Products
        <UL>
            <LI>Milk</LI>
            <LI>Curd</LI>
            <LI>Buttermilk</LI>
        </UL>
    </LI>
</OL>
shaalaa.com
  Is there an error in this question or solution?
Chapter 3: HTML- I: Basic HTML Elements - Assignment [Page 128]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 3 HTML- I: Basic HTML Elements
Assignment | Q 35. | Page 128
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×