Page 113 - iPrime_V2.2_class7
P. 113

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 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     111
   108   109   110   111   112   113   114   115   116   117   118