Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 11

Tell us what’s happening:

Describe your issue in detail here.

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>Balance Sheet</title>
    <link rel="stylesheet" href="./styles.css">
  </head>
  <body>
    <main>
      <section>
        <h1>
          <span class="flex">
            <span>AcmeWidgetCorp</span>
            <span>Balance Sheet</span>
          </span>
        </h1>
        <div id="years" aria-hidden="true">
          <span class="year">2019</span>
          <span class="year">2020</span>
          <span class="year">2021</span>
        </div>
        <div class="table-wrap">
          <table>
            <caption>Assets</caption>

<!-- User Editable Region -->

            <thead>
              <tr>
                <span><td></td></span>
                <span class="sr-only year"><th></th></span>
                <span class="sr-only year"><th></th></span>
                <span class="sr-only year"><th></th></span>

              </tr>
              <tr>
                <span><td></td></span>
                <span class="sr-only year"><th>2019</th></span>
                <span class="sr-only year"><th>2020</th></span>
                <span class="sr-only year"><th>2021</th></span>
               </tr>
                
            </thead>

<!-- User Editable Region -->

            <tbody>
            </tbody>
          </table>
          <table>
          </table>
          <table>
          </table>
        </div>
      </section>
    </main>
  </body>
</html>
/* file: styles.css */

Your browser information:

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

Challenge Information:

Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 11

Welcome to the forum

Please try and put the issue into words, I know this can be tough, and can help to focus on the solution.

For this step, the instructions say to nest the year in span elements - instead you wrapped th elements.

Second, there is extra code which will, stop the tests from passing.

Third, one of the th elements needs a class attribute.

Happy coding

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.