Page 123 - C_GPT _V4 _class_7
P. 123

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.



                          Experiential Learning                                                         Lab Activity


                    Make a table for correct uses of articles (A, An and The) in Word. Also make same table in HTML.







                         Topic Flashback                                                  21 st  Century   #Technology Literacy
                                                                                              Skills  #Flexibility
                         Write the names of any four CSS properties of the <TABLE> tag in HTML5.

                       1.

                       2.

                       3.

                       4.






                            Quick Quiz


                  1.  To create an unordered (bulleted) list in HTML, which tag should you use?

                             a.  <ul>                                      b. <ol>

                  2.  In HTML, which tag is used to create a table?

                             a. <tbl>                                      b. <table>

                  3.   What HTML element is used to define a header cell in an HTML table?

                             a. <th>                                       b. <td>

                  4.  If you set COLSPAN=3, then what will it do?

                             a. It merges three rows.                      b. It merges three columns.







                                                                                        Lists and Tables in HTML5  121
   118   119   120   121   122   123   124   125   126   127   128