Page 95 - Touchpad_Plus_V3.2_Class 7
P. 95

Ordered list

                 Unordered Lists

                 An unordered list is also called a bulleted list. This type of list is generally used to display random
                 items that are never required to be placed in a sequential manner. The <UL> tag is used to
                 define an unordered list with any of the following bullets using the TYPE attribute or list-style-
                 type property:

                         Disc
                     o  Circle

                         Square
                 The default bullet style is Disc in HTML. Let us use the <UL> tag to create an unordered list:

                 <HTML>
                 <HEAD> <TITLE> Unordered List or Bulleted List </TITLE> </HEAD>
                 <BODY>

                 <B> Winter Clothes </B>
                 <HR>
                 <UL STYLE="list-style-type:disc;">
                 <LI> Sweaters </LI>

                 <LI> Woollen Caps </LI>
                 <LI> Gloves </LI>
                 <LI> Jackets </LI>
                 </UL>

                 </BODY>
                 </HTML>

                 Every list has the ability to be placed
                 inside another list. For example, an
                 ordered list can be nested inside an                            Unordered list
                 unordered list and vice versa. Ensure that the inner and outer list tags should be properly closed
                 while creating a nested list.

                                                                                      Lists and Tables in HTML       93
   90   91   92   93   94   95   96   97   98   99   100