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

Tell us what’s happening:
I keep trying, but it keeps telling me my code is wrong. Am not sure what I’m doing wrong, please help?

Step 17

Time to move on to your second table. Start by giving it a caption element set to Liabilities. Then add your thead and tbody.

Your caption element should have the text Liabilities

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <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">
          <span class="flex">
            <span>Balance Sheet</span>
        <div id="years" aria-hidden="true">
          <span class="year">2019</span>
          <span class="year">2020</span>
          <span class="year">2021</span>
        <div class="table-wrap">
                <th><span class="sr-only year">2019</span></th>
                <th><span class="sr-only year">2020</span></th>
                <th class="current"><span class="sr-only year">2021</span></th>
              <tr class="data">
                <th>Cash <span class="description">This is the cash we currently have on hand.</span></th>
                <td class="current">$28</td>
              <tr class="data">
                <th>Checking <span class="description">Our primary transactional account.</span></th>
                <td class="current">$53</td>
              <tr class="data">
                <th>Savings <span class="description">Funds set aside for emergencies.</span></th>
                <td class="current">$728</td>
              <tr class="total">
                <th>Total <span class="sr-only">Assets</span></th>
                <td class="current">$809</td>
/* 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/ Safari/537.36 Edg/106.0.1370.42

Challenge: Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 17

Link to the challenge:

“Liabilities” is wrapped with opening and closing ‘caption’ tags.

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