HOW TO USE CELLPADDING AND CELLSPACING ATTRIBUTES IN HTML CODE.?

Ailsa Singh

Total Post:11

Points:55
Posted by  Ailsa Singh
HTML 
 368  View(s)
Ratings:
Rate this:
  1. Ailsa Singh

    Post:11

    Points:55
    How to use Cellpadding and Cellspacing Attributes in HTML code.?

    Cellpadding and Cellspacing Attributes in HTML code.

    It is used to adjust the spaces of the table.

    CellSpacing : It is used to define the width of the border

    CellPadding : it is used to define the distance between the border and content within the cell

    <!DOCTYPE html>

    <html>                  

    <body>

    <table border="1" cellpadding="50" cellspacing="50">

    <tr>

    <th>Name</th>

    <th>Post</th>

    </tr>

    <tr>

    <td>Abhishek</td>

    <td>Software Developer</td>

    </tr>

    <tr>

    <td>Pri</td>

    <td>Programmer</td>

    </tr>

    </table>

    </body>

    </html>

      Modified On Oct-12-2016 04:31:36 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!