Testing tables

Which of the tables below has both of the following:

Example 1

This example uses a <caption> to label the <table> and <th> for column and row headers.

Animals found in different habitats
Habitat Mammal Bird Reptile
Forest Deer Owl Lizard
Ocean Dolphin Albatross Turtle
Desert Camel Falcon Gecko
Wetland Otter Heron Crocodile
HTML markup
<table>
  <caption>
    Animals found in different habitats
  </caption>
  <thead>
    <tr>
      <th>Habitat</th>
      <th>Mammal</th>
      <th>Bird</th>
      <th>Reptile</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th>Forest</th>
      <td>Deer</td>
      <td>Owl</td>
      <td>Lizard</td>
    </tr>
    <tr>
      <th>Ocean</th>
      <td>Dolphin</td>
      <td>Albatross</td>
      <td>Turtle</td>
    </tr>
    <tr>
      <th>Desert</th>
      <td>Camel</td>
      <td>Falcon</td>
      <td>Gecko</td>
    </tr>
    <tr>
      <th>Wetland</th>
      <td>Otter</td>
      <td>Heron</td>
      <td>Crocodile</td>
    </tr>
  </tbody>
</table>

Example 2

This example uses only <td> elements. It does not include a <caption> or <th> header cells.

Birds found in different habitats

Habitat Small bird Water bird Bird of prey
Forest Robin Duck Owl
Wetland Wren Heron Kite
Coast Swallow Pelican Osprey
Grassland Finch Swan Falcon
HTML markup
<h3>Birds found in different habitats</h3>
<table>
  <thead>
    <tr>
      <td class="fake-header">Habitat</td>
      <td class="fake-header">Small bird</td>
      <td class="fake-header">Water bird</td>
      <td class="fake-header">Bird of prey</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td class="fake-header">Forest</td>
      <td>Robin</td>
      <td>Duck</td>
      <td>Owl</td>
    </tr>
    <tr>
      <td class="fake-header">Wetland</td>
      <td>Wren</td>
      <td>Heron</td>
      <td>Kite</td>
    </tr>
    <tr>
      <td class="fake-header">Coast</td>
      <td>Swallow</td>
      <td>Pelican</td>
      <td>Osprey</td>
    </tr>
    <tr>
      <td class="fake-header">Grassland</td>
      <td>Finch</td>
      <td>Swan</td>
      <td>Falcon</td>
    </tr>
  </tbody>
</table>