Page 75 - modular_v2.0_HTML&_CSS_Fb
P. 75

<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 from the table.
                 Using Border-spacing Property

                 The border-spacing property is used to specify the space between the borders of adjacent cells.
                 For example:

                 <STYLE>

                 TABLE, TH, TD
                 {

                 BORDER:2PX;
                 BORDER-STYLE:SOLID;

                 BORDER-COLOR:GREEN;
                 BORDER-SPACING:15PX;

                 }

                 </STYLE>
                 Using Width Property                                      Using Border-spacing Property


                 The width property is used to specify the width of a box or table. 100% width will capture the
                 complete width of the web page. For example:

                                                                                                                73
                                                                                               Tables in HTML
   70   71   72   73   74   75   76   77   78   79   80