Page 115 - TP_iPlus_V2.1_Class7
P. 115

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>























                  i +  CREATING TABLES


                 Tables represent the data in the form of rows and columns. In HTML5, 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>: The <TR> stands for Table Row, and is used to start a row. It ends up with </TR>. It is
                   a container tag.

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

                 •  <TH>: This tag is used for defining table headings.


                                                                                                                 113
                                                                                        Lists and Tables in HTML
   110   111   112   113   114   115   116   117   118   119   120