Build an Availability Table - Build an Availability Table

Tell us what’s happening:

Step 38 passes correctly, but Step 39 fails even though every in the first column has scope=“row”. I have checked the table structure multiple times, but the test still reports that the required scope=“row” attributes are missing. Could someone confirm whether this is a test issue or if there is a specific structure required?

Your code so far

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

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Availability Table</title>
  <link rel="stylesheet" href="styles.css">
</head>

<body>

  <table>
    <caption>Weekly Meeting Availability Schedule</caption>

    <tr>
      <th scope="col"></th>
      <th scope="col">Monday</th>
      <th scope="col">Tuesday</th>
      <th scope="col">Wednesday</th>
      <th scope="col">Thursday</th>
      <th scope="col">Friday</th>
    </tr>

    <tr class="sharp">
      <th scope="row" class="time">5 AM</th>
      <td class="available-0" aria-label="0 available"></td>
      <td class="available-1" aria-label="1 available"></td>
      <td class="available-2" aria-label="2 available"></td>
      <td class="available-3" aria-label="3 available"></td>
      <td class="available-4" aria-label="4 available"></td>
    </tr>

    <tr class="half">
      <th scope="row" class="time">6 AM</th>
      <td class="available-5" aria-label="5+ available"></td>
      <td class="available-4" aria-label="4 available"></td>
      <td class="available-3" aria-label="3 available"></td>
      <td class="available-2" aria-label="2 available"></td>
      <td class="available-1" aria-label="1 available"></td>
    </tr>

    <tr class="sharp">
      <th scope="row" class="time">7 AM</th>
      <td class="available-2" aria-label="2 available"></td>
      <td class="available-5" aria-label="5+ available"></td>
      <td class="available-4" aria-label="4 available"></td>
      <td class="available-1" aria-label="1 available"></td>
      <td class="available-0" aria-label="0 available"></td>
    </tr>

    <tr class="half">
      <th scope="row" class="time">8 AM</th>
      <td class="available-3" aria-label="3 available"></td>
      <td class="available-0" aria-label="0 available"></td>
      <td class="available-5" aria-label="5+ available"></td>
      <td class="available-4" aria-label="4 available"></td>
      <td class="available-2" aria-label="2 available"></td>
    </tr>

  </table>

  <div id="legend">
    <span>Availability</span>
    <div id="legend-gradient"></div>
  </div>

</body>

</html>
/* file: styles.css */
:root {
  --color0: #fff;
  --color1: #666;
  --color2: #999;
  --color3: #777;
  --color4: #111;
  --color5: #333;
  --solid-border: 1px solid black;
  --dashed-border: 1px dashed balck;
}

.available-0 {
  background-color: var(--color0);
}
.available-1 {
  background-color: var(--color1);
}
.available-2 {
  background-color: var(--color2)
}
.available-3 {
  background-color: var(--color3);
}
.available-4 {
  background-color: var(--color4);
}
.available-5 {
  background-color: var(--color5);
}
.sharp td {
  border-bottom: var(--solid-border);
}
.half td {
  border-bottom: var(--dashed-border);
}
#legend-gradient {
  background-image: linear-gradient(
    to right,
    var(--color0) 0%,
    var(--color0) 20%,
    var(--color1) 20%,
    var(--color1) 40%,
    var(--color2) 40%,
    var(--color2) 60%,
    var(--color3) 60%,
    var(--color3) 80%,
    var(--color4) 80%,
    var(--color4) 90%,
    var(--color5) 90%,
    var(--color5) 100%
  );
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Build an Availability Table - Build an Availability Table

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-availability-table/66b36358ed4f261d64840c24.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @abduazizovjamshid54,

Currently the tests are a bit too strict but that should be corrected with the next deployment.

To pass the tests, this header cell: <th scope="col"></th> must be set up like this one: <th scope="row" class="time">5 AM</th> including a time.

Happy coding

Thank you so much! That fix worked perfectly and the test passed successfully. I really appreciate your help! Happy Coding!