Page 54 - Modular_V1.1_Flipbook
P. 54

Recap


                          Table represents data in the form of rows and columns.
                          The <TR> tag is used to create a row in a table.

                          The <TD> tag is used to insert data into cells.


                                                         Exercise



                  A.    Tick ( ) the correct option.
                             ü
                        1.   Which tag allows you to insert a table in a web page?

                             a.   <IMG>                                     c.   <A>
                             b.   <TABLE>                                   d.   <LI>
                        2.   Which attribute of the <TABLE> tag gives space between the adjacent cells?
                             a.   CELLSPACING                               c.   CELLPADDING
                             b.   ROWSPAN                                   d.   COLSPAN

                        3.   Which of these is not an attribute of the <TABLE> tag?
                             a.   BORDER                                    c.   BACKGROUND

                             b.   BORDERCOLOR                               d.   TYPE
                        4.   Which of  the  following  attributes  is used to  set the  display position of the  text  in a  cell
                             horizontally?
                             a.   ALIGN                                     c.   ROWSPAN
                             b.   VALIGN                                    d.   COLSPAN

                        5.   Which of the following attributes is used to set the background colour in row of a table?

                             a.   BACKCOLOR                                 c.   BACKGROUND
                             b.   BGCOLOR                                   d.   COLOR
                        6.   Which of the following codes is correct to merge 2 rows is a table?

                             a.   <TD ROWS = 2>                             c.   <TR ROWSPAN = 2>
                             b.   <TD ROWSPAN = 2>                          d.   <TD COLSPAN = 2>

                  B.    Fill in the blanks using the words given below.


                                                     CELLSPACING, BORDER, <TH>,  Tables



                        1.   .......................... tag is used for defining table headings.
                        2.   .......................... represent the data in the form of rows and columns

                        3.   .......................... attribute is used to define the minimum distance between two adjacent cells in
                             a table.
                        4.   The default value of the .......................... attribute is 0.



                  52      Touchpad MODULAR (Version 1.1)-IX
   49   50   51   52   53   54   55   56   57   58   59