Page 232 - DCAP109_GRAPHIC_TOOLS
P. 232

Unit 10: Working of Web Designing




          Cellpadding and Cellspacing                                                           Notes

          Cellpadding specifies the space between the cell wall and the cell content.

                 Example: A

          <html>
          <body>
          <p>Table without cellpadding:</p>
          <table border=”1">
            <tr>
                    <th>Month</th>

                    <th>Savings</th>
             </tr>
             <tr>
                <td>January</td>
               <td>$100</td>
             </tr>
          </table>


          <p>Table with cellpadding:</p>

          <table border=”1" cellpadding=”10">
             <tr>
                <th>Month</th>
                <th>Savings</th>
             </tr>





             <tr>
                <td>January</td>
               <td>$100</td>
             </tr>
          </table>


          </body>
          </html>










                                           LOVELY PROFESSIONAL UNIVERSITY                                   225
   227   228   229   230   231   232   233   234   235   236   237