Check out example codes for "html tabellen". It will help you in understanding the concepts better.

Code Example 1

table, th, td
{

  border: 1px solid black;

}

Code Example 2

th, td {
  padding: 15px;
}

Code Example 3

table, th, td {
  border: 1px solid black;

   
 border-collapse: collapse;
}

Code Example 4

#t01 tr:nth-child(even) {

  background-color: #eee;
}

  #t01 tr:nth-child(odd) {

  background-color: #fff;
}

  #t01 th {
  color: white;
  background-color: black;
}

Code Example 5

<table style="width:100%">
  <tr>

    <th>Name</th>

    
<th colspan="2">Telephone</th>
  </tr>

  <tr>
    
<td>Bill Gates</td>
    <td>55577854</td>
    
<td>55577855</td>
  </tr>
</table>

Code Example 6

#t01 {
  width: 100%; 

  background-color: #f1f1c1;
}

Code Example 7

table {
  border-spacing: 5px;
}

Code Example 8

<table style="width:100%">
 
<tr>
    <th>Firstname</th>

    <th>Lastname</th> 
    <th>Age</th>

 
</tr>
 
<tr>
    <td>Jill</td>

    <td>Smith</td> 
    <td>50</td>

 
</tr>
  <tr>
    <td>Eve</td>

    <td>Jackson</td> 
    <td>94</td>

  </tr>
</table>

Code Example 9

<table id="t01">

  <tr>
    <th>Firstname</th>

    <th>Lastname</th> 
    <th>Age</th>

  </tr>
  <tr>
    <td>Eve</td>

    <td>Jackson</td> 
    <td>94</td>

  </tr>
</table>

Code Example 10

th {
  text-align: left;
}

Learn ReactJs, React Native from akashmittal.com