Page 112 - TP_Pluse_V2.2_Class_7
P. 112

<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>
                                                                      Table : Student
                    <TD> M </TD>                              Roll No.  Name  Grade Gender
                                                              1      Aarav   B     M
                  </TR>
                                                              2      Gauransh  A   M
                  </TABLE>                                    3      Himakshi A    F

                  </BODY>                                     4      Rakshit  B    M
                  </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
                                                                            Table : Student
                  {
                      border:2px;                                  Roll No.     Name  Grade  Gender

                      border-style:solid;                          1       Aarav    B      M

                      border-color:green;                          2       Gauransh  A     M
                      border-spacing:15px;                         3       Himakshi  A     F

                  }                                                4       Rakshit  B      M
                  </STYLE>

                  110   Plus (Ver. 2.2)-VII
   107   108   109   110   111   112   113   114   115   116   117