Build a Book Inventory App - Build a Book Inventory App

Tell us what’s happening:

It just keeps failing.

Tests 5-9 are failing. I’ve tried everything I could think of. Maybe anyone here knows what I should do in this situation.

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 Inventory</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <h1>Book Inventory</h1>

    <table>
      <thead>
        <tr>
          <th>Title</th>
          <th>Author</th>
          <th>Category</th>
          <th>Status</th>
          <th>Rate</th>
        </tr>
      </thead>

      <tbody>
        <tr class="read">
          <td>Clean Code</td>
          <td>Robert C. Martin</td>
          <td>Programming</td>
          <td>
            <span class="status">Read</span>
          </td>
          <td>
            <span class="rate three">
              <span></span><span></span><span></span>
            </span>
          </td>
        </tr>
        <tr class="to-read">
          <td>Atomic Habits</td>
          <td>James Clear</td>
          <td>Self-Improvement</td>
          <td>
            <span class="status">To Read</span>
          </td>
          <td>
            <span class="rate">
              <span></span><span></span><span></span>
            </span>
          </td>
        </tr>
        <tr class="in-progress">
          <td>Dune</td>
          <td>Frank Herbert</td>
          <td>Science Fiction</td>
          <td>
            <span class="status">In Progress</span>
          </td>
          <td>
            <span class="rate">
              <span></span><span></span><span></span>
            </span>
          </td>
        </tr>
        <tr class="read">
          <td>The Pragmatic Programmer</td>
          <td>Andrew Hunt</td>
          <td>Programming</td>
          <td>
            <span class="status">Read</span>
          </td>
          <td>
            <span class="rate two">
              <span></span><span></span><span></span>
            </span>
          </td>
        </tr>
      </tbody>
    </table>
  </body>
</html>
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  min-height: 100vh;
  padding: 2rem;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
}

table {
  margin: 0 auto;
  border-collapse: collapse;
  min-width: 70%;
  background: #020617;
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
}

thead {
  background: #020617;
}

th {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #1f2937;
}

tbody tr td {
  border-bottom: 1px solid #1f2937;
}

span {
  display: inline-block;
}

tr[class="read"] {
  background-image: linear-gradient(90deg, #064e3b, #022c22);
}

tr[class="to-read"] {
  background-image: linear-gradient(90deg, #1d4ed8, #020617);
}

tr[class="in-progress"] {
  background-image: linear-gradient(90deg, #b45309, #451a03);
}

tr[class="to-read"] span[class="status"] {
  border: 1px solid #bfdbfe;
  background-image: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

tr[class="read"] span[class="status"] {
  border: 1px solid #bbf7d0;
  background-image: linear-gradient(135deg, #16a34a, #22c55e);
}

tr[class="in-progress"] span[class="status"] {
  border: 1px solid #fed7aa;
  background-image: linear-gradient(135deg, #f97316, #facc15);
}


span[class="status"],
span[class^="rate"] {
  height: 24px;
  width: auto;
  padding: 0 0.5rem;
  line-height: 24px;
}

span[class^="rate"] > span {
  border: 1px solid rgba(15, 23, 42, 0.6);
  border-radius: 999px;
  margin: 0 4px 0 0;
  height: 10px;
  width: 10px;
  background-color: rgba(15, 23, 42, 0.4);
}


span[class~="one"] span:first-child {
  background-image: linear-gradient(135deg, #facc15, #f97316);
}

span[class~="two"] span:nth-child(-n + 2) {
  background-image: linear-gradient(135deg, #facc15, #f97316);
}

span[class~="three"] span {
  background-image: linear-gradient(135deg, #facc15, #f97316);
}


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0

Challenge Information:

Build a Book Inventory App - Build a Book Inventory App

Hey there,

Please update the message to include your code. The code was too long to be automatically inserted by the help button.

When you enter a code, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Hi @PoisonedBaozi. Welcome to the forum.

Your code looks good. Please move on to the next challenge for now. I’m looking into this and think a recent deployment may have borked the tests.

with this you are writing TITLE there, the tests still expect to find Title

Good catch! I overlooked that.

I really appreciate that! I didn’t expect THIS will cause the problem. Thank you so much!