Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 56 - 2633 Trackpad Pro V5.1 Class 7
P. 56

    NESTED LIST

                      An item on a list can contain another list. The list within a list is known as a nested list or sub-list.
                      Write HTML code to create a nested list.

                      <!DOCTYPE html>
                      <HTML>
                      <HEAD><TITLE> Nested List</TITLE></HEAD>
                      <BODY>
                      <H1>List of Fruits and Vegetables</H1>

                      <OL>
                      <LI> List of Fruits
                          <UL>
                          <LI>Apple</LI>
                          <LI>Watermelon</LI>
                          <LI>Orange</LI>
                          <LI>Strawberry</LI>

                          </UL>
                      </LI>
                      <LI> List of Vegetables
                          <UL>
                          <LI>Mushroom</LI>
                          <LI>Potato</LI>
                          <LI>Carrot</LI>
                          <LI>Sweet Potato</LI>
                          </UL>

                      </LI>
                      </OL>
                      </BODY>
                      </HTML>

                       54   Premium Edition-VII

| 51 52 53 54 55 56 57 58 59 60 61 |