Learn More About CSS Pseudo Selectors by Building A Balance Sheet - Step 10

Tell us what’s happening:

Tell us what’s happening: please help, I have no idea what I’m doing wrong, I’ve been struggling with this for a while and I can’t figure it out

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>
              <td>
                <tr>
                  <th></th>
                  <th></th>
                  <th></th>
                </tr>
                </td>
            </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/131.0.0.0 Safari/537.36

Challenge Information:

Learn More About CSS Pseudo Selectors by Building A Balance Sheet - Step 10

Check the documentation for <thead> at:

:point_right: <thead>: The Table Head element - HTML: HyperText Markup Language | MDN :point_left:

Use this site for looking up things like this from now on.

Hint: It’s got to do with your use of <td>

Think of table rows as like its a single line in your table

Table headers (th) as a label for a row/column

And think of table data cells (td) as like little boxes you put as data to your tables

I hope this switches your lightbulb

1 Like