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

Ailsa Singh

Total Post:0

Points:0
Posted by  Ailsa Singh
HTML 
 532  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 Mar-28-2018 11:57:22 PM

Answer

NEWSLETTER

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