Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 50 - 2607_Trackpad_Pro_5.1_flipbook_C7
P. 50

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

                                 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.

                                                                                              Lists and Tables in HTML5  49

| 45 46 47 48 49 50 51 52 53 54 55 |