Page 95 - ConceptGP_C7_Fb
P. 95

Property                 Value                       Description



                                                                       It specifies  the  space  between  cell
                                              length
                                                                       contents in cm, px, or pts.
                       padding                                         It specifies  the space  between  the

                                              %                        cell contents in the percentage of the
                                                                       element in which it is used.


                 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>



                                                                                          Lists and Tables in HTML5  93
   90   91   92   93   94   95   96   97   98   99   100