Page 96 - CA_165_V2.0_Flipbook
P. 96

The output of the preceding HTML code is as follows:











                          Displays unordered
                         list with default type
                              i.e. ‘Disc’.


                          Displays unordered
                            list with square
                               bullets.

                  The following table lists all the attributes of the <UL> tag, their possible values, and a description of their
                  purpose:

                      Attribute Name             Value                              Description

                   TYPE                     DISC, CIRCLE,      Specifies the bullet style for the unordered list. DISC is
                                            SQUARE             the  default,  CIRCLE  gives hollow  circles, and  SQUARE
                                                               gives square bullets.

                  Nested List

                  A list can be nested with the same or with different types of ordered list inside another list. The web
                  browser automatically indents the nested list levels and display as ‘List Items’.
                  The following HTML code uses the <UL> tag to create nested unordered lists, with each state having a
                  list of cities:

                  <HTML>
                  <HEAD>
                  <TITLE> USING NESTED UNORDERED</TITLE>
                  </HEAD>
                  <BODY BGCOLOR = "AQUA">
                  <H2> States and Cities of India </H2>
                  <UL TYPE = "CIRCLE">
                         <LI> Odisha
                         <UL>
                                <LI>Cuttack
                                <LI>Bhubaneswar
                                <LI> Puri
                         </UL>
                         <LI> Bihar
                         <UL>
                                <LI>Patna
                                <LI>Nalanda


                    94   Touchpad Computer Applications-X
   91   92   93   94   95   96   97   98   99   100   101