Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of Setting Table Cell Padding</title> <style> table { border-collapse: collapse; } table, th, td { border: 1px solid black; } th, td { padding: 15px; } </style> </head> <body> <table> <tr> <th>ID</th> <th>First Name</th> <th>Last Name</th> <th>Email</th> </tr> <tr> <td>1</td> <td>John</td> <td>Carter</td> <td>johncarter@mail.com</td> </tr> <tr> <td>2</td> <td>Peter</td> <td>Parker</td> <td>peterparker@mail.com</td> </tr> <tr> <td>3</td> <td>John</td> <td>Rambo</td> <td>johnrambo@mail.com</td> </tr> <tr> <td>4</td> <td>Harry</td> <td>Potter</td> <td>harrypotter@mail.com</td> </tr> </table> </body> </html>