How do you put a border on a < table >?

 How do you put a border on a < table >?


To add a border to your table, you need to define the
 <style> of your table


<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
 
   <style>

      table {
        border-style: ridge;
        border-width: 150px;
        border-color: #8ebf42;
        background-color: #d9d9d9;
      }

      th {
        border: 5px solid #095484;
      }

      td {
        border: 20px groove #1c87c9;
      }

    </style>

  </head>
  <body>
    <table>
      <tr>
        <th>Person</th>
        <th>Age</th>
      </tr>
      <tr>
        <td>Ann</td>
        <td>19</td>
      </tr>
      <tr>
        <td>Susie</td>
        <td>22</td>
      </tr>
    </table>
  </body>
</html>

Comments

Last 7 Days

How to use referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

How to use autoplay and mute attribute with < video > tag in HTML for youtube ? with example

How to use Local Variable for whose values are present till function is executing in solidity ?

How to add Amazon website inside iframe?

How to use comments in Solidity programming language ?

How to use string in Solidity programming language ?

How to use arrays in Solidity programming language ?