<style>
  table {
    border: 1px solid black;
    border-collapse: collapse;
  }
  th, td {
    padding: 10px;
    border: 1px solid black;
  }
  th {
    background-color: lightgray;
  }
</style>
<table>
  <tr>
    <th>Nama</th>
    <th>Umur</th>
<th>Pekerjaan</th>
  </tr>
  <tr>
    <td>Wisnu</td>
    <td> 38 thn</td>
    <td>Pegawai Swasta</td>
  </tr>
  <tr>
    <td>Yulia</td>
    <td> 30 thn</td>
    <td>Ibu Rumah Tangga</td>
  </tr>
</table>
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.