HTML table

To make html table you could use code from example or choose your own style:

<style>
table {
  font-family: helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}
</style>


<h2>HTML Table</h2>

<table>
  <tr>
    <th>name</th>
    <th>number</th>
    <th>status</th>
  </tr>
  <tr>
    <td>Alexa</td>
    <td>22536337</td>
    <td>single</td>
  </tr>
  <tr>
    <td>Antonina</td>
    <td>375875875</td>
    <td>too young</td>
  </tr>
  <tr>
    <td>Ernest</td>
    <td>2333444</td>
    <td>single</td>
  </tr>
  <tr>
    <td>Goward</td>
    <td>383833833</td>
    <td>pizza deliverer</td>
  </tr>
  <tr>
    <td>Laura</td>
    <td>3837837837</td>
    <td>single</td>
  </tr>
  <tr>
    <td>Felix</td>
    <td>497494744</td>
    <td>famous</td>
  </tr>
</table>

0 коммент.