Learn Accessibility by Building a Quiz - Step 47

Tell us what’s happening:

i have tried every possible situation but not able to solve this problem. stuck on this step

Your code so far

<!-- file: index.html -->

/* file: styles.css */
/* User Editable Region */



li > a {
  color: inherit;
  text-decoration: none;
  nav > ul > li: hover;
}

/* User Editable Region */

Your browser information:

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

Challenge Information:

Learn Accessibility by Building a Quiz - Step 47

Hi there,

First of all, there should be no space between li and :hover in your list item hover selector:


Secondly, you put your list item hover selector inside li > a selector, that’s wrong

You should put the list item hover selector outside and set the rules to make:

  • the background color and text color are switched
  • and the cursor becomes a pointer

It should look like this:

your list item hover selector {
    rules to switch background color and text color;
    rule to turn cursor to pointer;
}

Note:

  • The current text color is on line 39
  • The current background color is on line 11