Page 94 - TechPluse_C7_Flipbook
P. 94

Definition List

                  The definition list is also known as description list. The description list is created by using the
                  <DL> tag in conjunction with <DD> and <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.

                  <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

                      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 of 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

               92       Premium Edition-VII
   89   90   91   92   93   94   95   96   97   98   99