Question <thead> element

Hi!

I have a question about the <thead> element. This element is suppose to contain data regarding table’s headings. However, in this example the second row also includes a heading <th>Morning</th>, as well as the 3rd and 4th row which are not captured in the <thead> element. How to deal with this situation?

<table>
  <thead>
    <tr>
      <th></th>
      <th>Saturday</th>
      <th>Sunday</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th>Morning</th>
      <td rowspan="2">Work</td>
      <td rowspan="3">Relax</td>
    </tr>
    <tr>
     <th>Afternoon</th>
    </tr>
    <tr>
      <th>Evening</th>
      <td>Dinner</td>
    </tr>
  </tbody>
</table>

Link exercise: https://www.codecademy.com/paths/web-development/tracks/learn-html-web-dev-path/modules/learn-html-tables/lessons/tables/exercises/table-head

Hi,

Yes its a bit misleading,
Have a look at this topic where its discussed:

2 Likes