Page 109 - iPro_trackGPT_V5_Class7
P. 109

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>























                    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.




                                                                                       Lists and Tables in HTML  107
   104   105   106   107   108   109   110   111   112   113   114