HTML <table> cellpadding Attribute Last Updated : 29 Dec, 2023 Comments Improve Suggest changes Like Article Like Report The HTML <table> cell padding Attribute is used to specify the space between the cell content and cell wall. The cellpadding attribute is set in terms of pixels. By default, the padding is set to 0. Note: The <table> cellpadding Attribute is not supported by HTML5. Syntax:<table cellpadding="pixels">Attribute Values:pixels: It holds the space between the cell content and cell wall in terms of pixels. Example 1: In this example, we will see the implementation of table cell padding with an example. html <!DOCTYPE html> <html> <head> <title> HTML table cellpadding Attribute </title> </head> <body> <h1>GeeksforGeeks</h1> <h2> HTML table cellpadding Attribute </h2> <table border="1" cellpadding="15"> <caption>Author Details</caption> <tr> <th>NAME</th> <th>AGE</th> <th>BRANCH</th> </tr> <tr> <td>BITTU</td> <td>22</td> <td>CSE</td> </tr> <tr> <td>RAM</td> <td>21</td> <td>ECE</td> </tr> </table> </body> </html> Output: Example 2: In this example, we will see the implementation of table cell padding with another example. HTML <!DOCTYPE html> <html> <head> <title> HTML table cellpadding Attribute </title> </head> <body> <h1>Company Employees</h1> <h2> Employee Details </h2> <table border="1" cellpadding="40"> <caption>Employee Information</caption> <tr> <th>Employee ID</th> <th>Name</th> <th>Position</th> </tr> <tr> <td>001</td> <td>John Doe</td> <td>Software Engineer</td> </tr> <tr> <td>002</td> <td>Jane Smith</td> <td>UX Designer</td> </tr> </table> </body> </html> Output: Supported Browsers:Google Chrome 1 Edge 12Firefox 1Safari 3Opera 12.1 Comment More infoAdvertise with us Next Article HTML <table> cellpadding Attribute jit_t Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML <table> cellspacing Attribute The cellspacing attribute in HTML is used to define the space between cells in a table. It controls the amount of space, in pixels, between the table cells. This spacing can make the table's content more readable by adding extra room between cells.However, it's important to note that the cellspacing 2 min read HTML | <td>colspan Attribute The HTML <td> colspan Attribute is used to specify the number of columns a table should span. Syntax: <td colspan="number"> Attribute Values: It contains the numeric value which specifies the number of columns a cell should span. Example: This Example illustrates the use of colspan attri 1 min read HTML | <th> colspan Attribute The <th> colspan Attribute in HTML is used to specify a number of columns a header cell should span. Syntax: <th colspan="number"> Attribute Values: It contains single value number which contains the numeric value to sets the number of column a header cell should span. Example: This exam 1 min read HTML <table> frame Attribute The HTML <table> element's frame attribute specifies which sides of the tableâs border should be displayed. It can take values like a void, above, below, hsides, vsides, lhs, rhs, or box, controlling how the table's edges are framed.Syntax<table frame="value">Attribute ValuesValueDescrip 2 min read HTML | <td> char Attribute The HTML <td> char Attribute is used to specify the alignment to the character of content in a table cell. This attribute only contains char align attribute. Its default value is a decimal point for page language. It is not supported by HTML 5. Syntax: <td char="character"> Attribute Val 1 min read Like