Build a Book Catalog Table - Build a Book Catalog Table

Tell us what’s happening:

Test 8 and 13 is not passing, I don’t know what exactly is the reason. I’ve tried resetting the lesson just in case, but it’s still saying the same. I can’t spot my mistakes for some reason.

  1. Each row in your tbody element should have exactly four td elements as children.

  2. The td element in your tfoot element’s row should have the text Total Books: N where N is the number of books in your table.

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>
  <h1>Book Catalog</h1>
  <table>
    <thead>
      <tr>
        <th>Title</th>
        <th>Author</th>
        <th>Genre</th>
        <th>Publication Year</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>Penpal</td>
        <td>Dathen Auerbach</td>
        <td>Thriller</td>
        <td>2012</td>
      <tr>
      <tr>
        <td>The Hobbit</td>
        <td>J. R. R. Tolkien</td>
        <td>Fantasy</td>
        <td>1937</td>
      </tr>
      <tr>
        <td>Binti</td>
        <td>Nnedy Okorafor</td>
        <td>Sci-fi</td>
        <td>2015</td>
      </tr>
      <tr>
        <td>The Troop</td>
        <td>Nick Cutter</td>
        <td>Sci-fi</td>
        <td>2014</td>
      </tr>
      <tr>
        <td>The Fall</td>
        <td>Albert Camus</td>
        <td>Classics</td>
        <td>1956</td>
      </tr>
    </tbody>
    <tfoot>
      <tr>
        <td colspan="4">Total Books: 5</td>
      </tr> 
    </tfoot>    
  </table>
</body>

</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0

Challenge Information:

Build a Book Catalog Table - Build a Book Catalog Table

Hi. One of your closing tr elements has a syntax error. Fix that and it should pass

Hi, your first does not have a valid closing tag, and in your in the tfoot , you should remove the space after👉:

Nice coding!