Build a Book Catalog Table - Build a Book Catalog Table

Tell us what’s happening:

The “check your code” for Build a Book Catalog Table in HTML course keeps giving me the error that “You should have one tbody element within your table element”. I of course have that, have filled it out and checked indentations. What could still be wrong?

The Preview page is showing everything as it should and as I would expect, its just the “check your code” that seems to have an issue with it, though i cant understand why.

Your code so far

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Book Catalog</title>
</head>

<body>
  <table>
    <thead>
      <tr>
        <th>Title</th>
        <th>Author</th>
        <th>Genre</th>
        <th>Publication Year</th>
      </tr>
    </thead>
    
    <tbody>
      <tr>
        <td>Name of the wind</td>
        <td>Patrick Rothfuss</td>
        <td>Fantasy</td>
        <td>2000<td>
      </tr>
      <tr>
        <td>A Wise Man's Fear</td>
        <td>PatrickRothfuss</td>
        <td>Fantasy</td>
        <td>2000<td>
      </tr>
      <tr>
        <td>Don Quixote</td>
        <td>Miguel Cervantes</td>
        <td>Fiction</td>
        <td>1604<td>
      </tr>
      <tr>
        <td>Isabella Nag and the pot of Basil</td>
        <td>Oliver Darkshire</td>
        <td>Fantasy</td>
        <td>2025<td>
      </tr>
      <tr>
        <td>Dune</td>
        <td>Frank Herbert</td>
        <td>Scifi</td>
        <td>1965<td>
      </tr>      
    </tbody>

    <tfooter>
      <tr>
        <td colspan="4">Total books: 5</td>
      </tr>
    </tfooter>
  </table>

</body>

</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:149.0) Gecko/20100101 Firefox/149.0

Challenge Information:

Build a Book Catalog Table - Build a Book Catalog Table

Hi @mcraider12 ,

Is this a valid HTML element?

Happy coding!

1 Like

Oops! You are right, it is supposed to be tfoot , indeed. I have updated the code, however the problem as stated in my original post still persist. Thanks for your reply btw!

I found i missed a slash in the closing thing in the last td of each td in the body. My bad! Fixed now!