Build a Book Catalog Table - Build a Book Catalog Table

Tell us what’s happening:

After running the code the checklist says…

  • That I need one< body> element within the table element.
    -That I need four elements in the body element
    -That each element needs text about the books
    -That I need one element

There are other errors but the all the code looks right and am stumped.

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>HHGTTG</td>
        <td>Dougla Adams</td>
        <td>sci-fi</td>
        <td>1980</td>
      </tr>

      <tr>
        <td>Lord of the Rings</td>
        <td>Tolkien</td>
        <td>Fantasy</td>
        <td>1970's</td>
      </tr>

      <tr>
        <td>Treasure Island</td>
        <td>Stevenson</td>
        <td>Pirate</td>
        <td>1940's</td>
      </tr>

      <tr>
        <td>The lion, the witch and the wardrobe</td>
        <td>I forget</td>
        <td>Fantasy</td>
        <td>1960's</td>
      </tr>

      <tr>
        <td>On the road</td>
        <td>Kerouac</td>
        <td>Literature</td>
        <td>1965</td>
      </tr>
    </tbody>

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

  </table>
</body>

</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Safari/605.1.15

Challenge Information:

Build a Book Catalog Table - Build a Book Catalog Table
https://www.freecodecamp.org/learn/full-stack-developer/lab-book-catalog-table/build-a-book-catalog-table

Welcome to the forum @Jannelli

What is a tfooter element?

The number of books goes after the colon.

You only need on td cell for that cell row.

Happy coding

I encountered an issue where my code didn’t pass with one element, but it passed when I removed the and tags. It might be worth verifying that this challenge doesn’t have an issue with the tag count verification.

please post the wrong code so we can check

I tried the challenge again from scratch, but I didn’t encounter the same issue. Meanwhile, I pasted OP’s code in. It yielded the tag count error when the erroneous tag follows it. It counted the tag correctly if a proper tag follows it.

removed by mod

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.