Build a Book Catalog Table - Build a Book Catalog Table

Tell us what’s happening:

I can’t figure out what is wrong with my code help.

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>Learn HTML</td>
        <td>J Anyone</td>
        <td>Technology</td>
        <td>2004</td>
      </tr>
      <tr>
        <td>learn CSS</td>
        <td>Anybody</td>
        <td>technology</td>
        <td>2004</td>
      </tr>
      <tr>
        <td>Learn Javascript</td>
        <td>anywho</td>
        <td>technology</td>
        <td>2004</td>
        </tr>
      <tr>
        <td>Fly Away</td>
        <td>who else</td>
        <td>fiction</td>
        <td>2024</td>
        </tr>
      <tr>
        <td>Me and Music</td>
        <td>Not Me</td>
        <td>fiction</td>
        <td>2025</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 (iPad; CPU OS 18_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/134.0.6998.33 Mobile/15E148 Safari/604.1

Challenge Information:

Build a Book Catalog Table - Build a Book Catalog Table

What tests are you failing?

I’m getting the following error message:

  1. The td element in your tfoot element’s row should have the text
    Total Books: [number of books in your table]

. // tests completed

The square brackets are just to indicate you’re to replace that text. It should just be a number. For example:

Total Books: 15

Never mind. I removed the square brackets around the number and it worked