Page 113 - iPlus_Ver_2.0_class_7
P. 113

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

                 <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>
                                                                                           #Digital Literacy

                      Let’s CatCh Up


                   What is the difference between an ordered list and unordered list?








                  i +  CREATING TABLES


                 Tables represent the data in the form of rows and columns. In HTML, a table  is created by using
                 the <TABLE> tag. The <TABLE> tag should be defined inside the <BODY> tag. It is a container
                 tag. Different kinds of tables can be created by using the following child tags of the <TABLE> tag:
                 •  <TR>: This tag is used for defining table rows.

                 •  <TD>: This tag is used for defining table data, that is, the data in the cells.
                 •  <CAPTION>: This tag is used for defining the title of the table.

                 •  <TH>: This tag is used for defining table headings.
                 Following is an example of a table:
                                                           Table: Student

                                 Roll No.             Name               Grade              Gender
                                     1          Aarav                       B                  M
                                     2          Gauransh                    A                  M
                                     3          Himakshi                    A                   F
                                     4          Rakshit                     B                  M
                                                            Students record



                                                                                                                 111
                                                                                        Lists and Tables in HTML
   108   109   110   111   112   113   114   115   116   117   118