HTML Table Generator

An HTML table allows you to arrange data into rows and columns.

Preview

HeadingHeadingHeading
CellCellCell
CellCellCell
CellCellCell

Properties

Styling

Code

<table class="my-table">
  <thead>
    <tr>
      <th>Heading</th>
      <th>Heading</th>
      <th>Heading</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
    </tr>
    <tr>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
    </tr>
    <tr>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
    </tr>
  </tbody>  
</table>
CSS
.my-table {
  width: 100%;
  border-width: 1px;
  border-style: solid;
  border-color: #222222;
  border-collapse: separate;
  background-color: #FFFFFF;
  color: #222222;
}

.my-table th, .my-table td {
  border-width: 1px;
  border-style: solid;
  border-color: #222222;
}

.my-table thead {
  background-color: #FFFFFF;
  color: #222222;
}