Page 121 - TP_iPlus_V2.1_Class7
P. 121

•   COLSPAN: The COLSPAN attribute applies when a cell is extended to more than one column,
                   that is, the cell spans for 2 or more columns instead of 1, as shown in the table below:


                                          Roll No.         Name           Marks     Grade

                                                       First     Last




                 Here, “Name” cell is taking a span of 2 columns.




                    To Sum Up


                         A list is a collection of related items.

                         There are three types of lists—ordered, unordered and definition list.

                         The <LI> tag is used to define an item in the list.
                         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



                                                       Section A (Objective)
                 A.  Tick (3) the correct option.
                     1.   Anshu wants to display the steps of a sweet dish recipe on a web page. Which type of list will you
                        suggest him to do so?

                        a. Ordered List                                 b. Unordered List

                        c. Description                                  d. None of these

                     2.  Which of the following tags is used to define an item in a list?
                        a. <IL>                                         b. <LI>


                        c. <OL>                                         d. <UL>

                     3.   Amita wants to display the items of the list with upper Roman numerals. Which option should she
                        use to achieve this?
                        a. TYPE="a"                                     b. TYPE="IV"

                        c. TYPE="i"                                     d. TYPE="*"






                                                                                                                 119
                                                                                        Lists and Tables in HTML
   116   117   118   119   120   121   122   123   124   125   126