Page 98 - TechPluse_C7_Flipbook
P. 98

<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>
                  </HTML>
                  In the preceding code, you have seen that rows are created by using the <TR> tag. Rows are
                  further divided into cells by using the <TD> tag. These cells contain data of the table. The output

                  of the preceding code is shown:





















                                                              Creating table

                  Let us create another program by using the COLSPAN attribute of the table.


               96       Premium Edition-VII
   93   94   95   96   97   98   99   100   101   102   103