Build a Book Inventory App - Build a Book Inventory App

Tell us what’s happening:

the instruction says i should have an attribute selector to target the span elements with the class of status and the span elements with the class value starting with rate.
i cant seem to find where i went wrong

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <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>Goldilocks and the Three Bears</td>
        <td>James Marshall</td>
        <td>English Fairytales </td>
        <td><span class="status">Read</span></td>
        <td><span class="rate two">
          <span></span>
          <span></span>
          <span></span>
          </span></td>
      </tr>
       <tr class="read">
        <td>The Three Little Pigs </td>
        <td>Savio Gomes</td>
        <td>Classic fairytale</td>
        <td><span class="status">Read</span></td>
        <td><span class="rate two"><span></span><span></span><span></span></span></td>
       </tr>
        <tr class="to-read">
          <td>The Lion and the Mouse </td>
          <td>Pratik Patel</td>
          <td>Fable</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>Hansel and Gretel </td>
          <td>Jacob Grimm</td>
          <td>English Fairytales</td>
          <td><span class="status">In Progress</span></td>
          <td><span class="rate"><span></span><span></span><span></span></span></td>
       
         </tr>
          <tr class="in-progress">
             <td>The Ant and the Grasshopper </td>
          <td>Chaili Brahim</td>
          <td>Fable</td>
          <td><span class="status">In Progress</span></td>
          <td><span class="rate"><span></span><span></span><span></span></span></td>
        
          </tr>
    </tbody>
  </table>
  
</body>

</html>
/* file: styles.css */
tr[class="read"]{
  background-image:linear-gradient(to top, green , lightgreen);

}

tr[class="to-read"]{
   background-image:linear-gradient(to top, orange, yellow);
}

tr[class="in-progress"]{
  background-image:linear-gradient(to top ,maroon, red);
}

span{
  display:inline-block;
}

tr[class="to-read"] span[class="status"]{
  background-image:linear-gradient(orange);
  border:2px solid black;
  border-radius:10px;
  
}

tr[class="read"] span[class="status"]{
  background-image:linear-gradient(green);
  border:2px solid black;
  border-radius:10px;
}

tr[class="in-progress"] span[class="status"]{
  background-image:linear-gradient(maroon);
  border:2px solid black;
  border-radius:10px;
}

span[class="status"] span[class^="rate"]{
 height:80%;
 width:200%;
 padding:10px;
}




Your browser information:

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

Challenge Information:

Build a Book Inventory App - Build a Book Inventory App

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-book-inventory-app/66a207974c806a19d6607073.md at main · freeCodeCamp/freeCodeCamp · GitHub

are you sure that is what you are doing with this selector?

i know that the ^ is used to match the beginning of the class name, which in this case is “rate” and that i have targeted the span with a class of “status” correctly

The way you’ve written it, you are saying span[class^=“rate”] needs to be a descendant of span[class=“status”]. Instead, these are two separate selectors using the same property/value settings. What do you need to add to indicate that?

Happy coding