Build a Book Inventory App - Build a Book Inventory App

Tell us what’s happening:

Can someone help me on the " You should have an attribute selector to target the first descendant of span elements that have the word one as a part of their class value." I’ve tried several thing and none worked.
first-child nth-child firs-of-type -nth-of-type, with and without > but even though it looks fine on the preview it is not passing

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>1984</td>
        <td>George Orwell</td>
        <td>Dystopian fiction / Political fiction</td>
        <td>
          <span class="status">Read
          </span></td>
          <td>
            <span class="rate three">
              <span></span>
            <span></span>
            <span></span>
            </span>
          </td>
      </tr>
      <tr class="in-progress">
        <td>The great Gatsby</td>
        <td>F. Scott Fitzgerald</td>
        <td>Classic Literature / Tragedy</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>To Kill a Mockingbird</td>
        <td>Harper Lee</td>
        <td>Classic literature / Social justice fiction</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 Hobbit</td>
        <td>J. R. R. Tolkien</td>
        <td>Fantasy / Fiction</td>
        <td>
          <span class="status">To Read
            </span>
        </td>
        <td>
          <span class="rate">
            <span></span>
            <span></span>
            <span></span>
            </span>
        </td>
      </tr>
    </tbody>
  </table>
</body>

</html>
/* file: styles.css */
tr[class="in-progress"]{
  background-image: linear-gradient(45deg, lavender, violet);
}

tr[class="read"] {
  background-image: linear-gradient(45deg, whitesmoke, #696969)
}

tr[class="to-read"] {
  background-image: linear-gradient(45deg, lightpink, hotpink);
}

span {
  display:inline-block;
}

tr[class="in-progress"] span[class="status"]{
    background-image: linear-gradient(180deg,#fcd34d, #f97316 );
    padding: 2px 4px;
    border: 2px solid black;
    border-radius: 8px;
    margin: 4px;
    font-weight: bold;
}

tr[class="to-read"] span[class="status"] {
  padding: 2px 4px;
  margin: 4px;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 8px;
  background-image: linear-gradient(180deg, #dbeafe, #93c5fd);
}

tr[class="read"] span[class="status"]{
  padding: 2px 4px;
  margin: 4px;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 8px;
  background-image: linear-gradient(180deg, #86efac, #22c55e)
}

span[class="status"], span[class^="rate"] {
 height: auto;
 width: auto;
 padding: 2px 4px;
}


span[class^="rate"] > span{
  border: 1px solid black;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin: 2px 4px;
  background-color: whitesmoke;
  padding: 2px;
}



span[class*="one"] >span:nth-child(1){
   background-image: linear-gradient(45deg, gold, #CC9900);
}

span[class*="two"] > span:nth-of-type(-n+2) {
   background-image: linear-gradient(45deg, gold, #CC9900);
}

span[class*="three"] span {
   background-image: linear-gradient(45deg, gold, #CC9900);
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0

Challenge Information:

Build a Book Inventory App - Build a Book Inventory App

Welcome to the forum @MikaBraga !

I think you will find this resource helpful:
MDN: Attribute Selectors

Happy coding!