Answers for "cellpadding"

0

cellpadding

<table cellspacing="0" cellpadding="0" border="1">
Posted by: Guest on May-24-2020
-1

how to give padding around cell in a table in html

<!DOCTYPE html>
<html>
   <head>
      <style>
         table, th, td {
            border: 1px solid black;
         }
      </style>
   </head>

   <body>
      <h1>Programming Language</h1>
      <table>
         <tr>
            <th style="padding:10px">Language</th>
         </tr>
         <tr>
            <td style="padding:10px">Ruby</td>
         </tr>
      </table>
   </body>
</html>
Posted by: Guest on February-02-2021

Browse Popular Code Answers by Language