Page 118 - Trackpad_ipro 4.1_Class7
P. 118

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

                  table, th, td
                  {

                      border:2px;


                   116     iPro (Ver. 4.1)-VII
   113   114   115   116   117   118   119   120   121   122   123