Build a Book Catalog Table - Build a Book Catalog Table

Tell us what’s happening:

I have done exactly what is asked here and yet it is not working:

  1. The td element in your tfoot element’s row should have the text Total Books: [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>
  <table>
    <thead>
      <tr>
        <th>Title</th>
        <th>Author</th>
        <th>Genre</th>
        <th>Publication Year</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>The martian</td>
        <td>Mark</td>
        <td>Scifi</td>
        <td>1997</td>
      </tr>
      <tr>
        <td>Another book</td>
        <td>fer</td>
        <td>scifi</td>
        <td>2010</td>
      </tr>
      <tr>
        <td>Another book</td>
        <td>fer</td>
        <td>scifi</td>
        <td>2010</td>
      </tr>
      <tr>
       <td>Another book</td>
        <td>fer</td>
        <td>scifi</td>
        <td>2010</td>
      </tr>
      <tr>
       <td>Another book</td>
        <td>fer</td>
        <td>scifi</td>
        <td>2010</td>

      </tr>
    </tbody>
    <tfoot>
      <tr>
        <td colspan="4">Total Books: [number of books in your table]</td>
      </tr>
    </tfoot>
  </table>


</body>

</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Build a Book Catalog Table - Build a Book Catalog Table

It worked by adding the number 5.

I am still encountering the same problem, how has yours worked ?

1 Like

hi @r0el please create your own topic to ask for help

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Get Help > Ask for Help button located on the challenge.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

The < /td> has to be on the same line as the < td>. It can’t be on the next line down.
Ex:
< td colspan=“4”>Total Books: 5< /td>

If you put
< td colspan=“4”>Total Books: 5
< /td>
it will be incorrect.
Weird, but that’s the only way it will accept the answer as correct.