Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 64 - 2633 Trackpad Pro V5.1 Class 7
P. 64

    Write HTML code to add space between contents of cell and the border.

                      <!DOCTYPE html>
                      <HTML>

                      <HEAD><TITLE>A Simple Table Structure</TITLE>
                      <STYLE>
                      TABLE,TH,TD

                      {
                      Border:2px solid black;
                      Border-collapse:collapse;
                      }

                      TH, TD
                      {
                      padding: 30px;

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

                       62   Premium Edition-VII

| 59 60 61 62 63 64 65 66 67 68 69 |