Page 99 - Touchpad_Plus_V3.2_Class 7
P. 99

<TD> 1 </TD>
                 <TD> Aarav </TD>

                 <TD> B </TD>
                 <TD> M </TD>
                 </TR>
                 <TR>
                 <TD> 2 </TD>
                 <TD> Gauransh </TD>
                 <TD> A </TD>
                 <TD> M </TD>
                 </TR>
                 <TR>
                 <TD> 3 </TD>
                 <TD> Himakshi </TD>
                 <TD> A </TD>
                 <TD> F </TD>

                 </TR>
                 <TR>
                 <TD> 4 </TD>
                 <TD> Rakshit </TD>
                 <TD> B </TD>
                 <TD> M </TD>
                 </TR>
                 </TABLE>
                 </BODY>
                                                                                   Border-color properties
                 </HTML>
                 Attributes of the <TD> Tag

                 Following are the attributes used to present the cell or table data in more effective manner:

                     ✶ ROWSPAN: The ROWSPAN attribute applies when a cell is extended for more than one row,
                    that is, the cell spans for 2 or more rows instead of 1 as shown in below table.
                    Here, the cell “Sports” is taking a span of 3 rows and “Martial Arts” is taking a span of 2 rows.
                    Example for using ROWSPAN attribute is:
                        <TD ROWSPAN="3">
                                                Category                     Types

                                                                    Badminton

                                         Sports                     Football
                                                                    Basketball
                                                                    Judo
                                         Martial Arts
                                                                    Karate
                                                          Table with rowspan

                                                                                      Lists and Tables in HTML       97
   94   95   96   97   98   99   100   101   102   103   104