Page 118 - iPrime_V2.2_class7
P. 118

<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>







                                              Table : Student
                                    Roll No.   Name    Grade Gender

                                    1        Aarav     B      M
                                    2        Gauransh  A      M
                                    3        Himakshi A       F
                                    4        Rakshit   B      M


                  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>

                 116     Touchpad iPRIME (Ver. 2.2)–VII
   113   114   115   116   117   118   119   120   121   122   123