Page 69 - modular_v2.0_HTML&_CSS_Fb
P. 69

<LI> Fruits </LI>

                 <UL>
                 <LI> Mango </LI>
                 <LI> Grapes </LI>
                 </UL>
                 <LI> Vegetables </LI>

                 <UL>
                 <LI> Potato </LI>
                                                                                 Nested list
                 <LI> Onion </LI>
                 </UL>
                 </OL>
                 </BODY>
                 </HTML>

                    DEFINITION LIST

                 The definition list is also known as description list. The description list is created by using the
                 Description List i.e, <DL> tag in conjunction with Description Definition i.e, <DD> and Description
                 Term i.e, <DT> tags. The <DL> tag defines the entire description list. The <DT> tag defines the
                 description term. The <DD> tag defines the description term's definition.

                 Let us use the <DL> tag to create a definition list.

                 <!DOCTYPE HTML>
                 <HTML>

                 <HEAD> <TITLE> Definition List </TITLE> </HEAD>

                 <BODY>
                 <B> Example of Definition List </B>

                 <HR/>
                 <DL>

                 <DT> Beverages </DT>

                 <DD> Hot and Cold Drinks</DD>
                 <DT> Cappuccino </DT>

                 <DD> Hot Drinks </DD>

                 </DL>
                 </BODY>

                 </HTML>                                                          Definition list






                                                                                                                67
                                                                                                Lists in HTML
   64   65   66   67   68   69   70   71   72   73   74