Page 52 - Modular_V1.1_Flipbook
P. 52

<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, we 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.
                  <HTML>
                  <HEAD>
                         <TITLE> TABLE WITH COLSPAN </TITLE>
                  </HEAD>

                  <BODY BGCOLOR = "LIGHTPINK">
                  <TABLE BORDER = "3" BORDERCOLOR = "GREEN">
                         <CAPTION>BILL</CAPTION>
                         <TR>
                                <TH>ITEMS</TH>
                                <TH>QUANTITY</TH>
                                <TH>UNIT PRICE</TH>
                                <TH>PRICE</TH>



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