html tabellen
snippet in html

html tabellen

user9418


table, th, td
{

  border: 1px solid black;

} 

html tabellen

user6529


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

   
 border-collapse: collapse;
} 

html tabellen

user9744


 table {
  border-spacing: 5px;
} 

html tabellen

user9289


 <table style="width:100%">
  <caption>Monthly savings</caption>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
  <tr>
    <td>February</td>
    <td>$50</td>
  </tr>

 </table> 

html tabellen

user125


  #t01 tr:nth-child(even) {

  background-color: #eee;
}

  #t01 tr:nth-child(odd) {

  background-color: #fff;
}

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

html tabellen

user5088


<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>
 

html tabellen

user765


 th, td {
  padding: 15px;
} 

html tabellen

user5232


<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> 

html tabellen

user2665


<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>
 

html tabellen

user9149


 th {
  text-align: left;
}