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

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>

<!-- User Editable Region -->

<div class="years" aria-hidden="true">

</div>

<!-- User Editable Region -->

      </section>
    </main>
  </body>
</html>
/* file: styles.css */
years{
  aria-hidden: true;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

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

Link to the challenge:

Hi everyone!

please I don’t really know to place

“aria-hidden” in my code. Can someone please assist me?

here is my code:


<div class="years" aria-hidden="true">

</div>

You shouldn’t be adding anything into your CSS file. You have added the attribute correctly to your <div> element however. The issue is that you were asked to add an id attribute with the value ‘years’. You have added a class attribute instead.

thank you Boss.

I got I now

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