Page 94 - ConceptGP_C7_Fb
P. 94

<!DOCTYPE html>

                  <HTML>
                  <HEAD>

                  <TITLE>A Simple Table Structure</TITLE>
                  <STYLE>

                  TABLE, TH, TD
                  {

                  border:2px solid black;

                  border-collapse:collapse;
                  }
                  </STYLE> </HEAD><BODY><TABLE>

                  <CAPTION>STUDENT'S DETAILS</CAPTION>

                  <TR>
                      <TH>ADMISSION</TH>

                      <TH>NAME</TH>
                      <TH>TOTAL MARKS</TH>

                  </TR>
                  <TR>

                      <TD>2016/0256</TD>
                      <TD>Aadya Kaushal</TD>

                      <TD>589</TD>
                  </TR>

                  <TR>

                      <TD>2017/0865</TD>
                      <TD>Shweta Kaushal</TD>
                      <TD>545</TD>

                  </TR>

                  </TABLE>
                  </BODY>

                  </HTML>

                  PADDING PROPERTY
                  We use padding to add space between the border and the contents of a cell. We can use spacing
                  to increase the border size or distance between cells. Since the table contents are present in <TH>

                  and <TD>, the padding property is declared for these two elements in the style tag.



                   92   Premium Edition-VII
   89   90   91   92   93   94   95   96   97   98   99