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