Learn Accessibility by Building a Quiz - Step 46

Tell us what’s happening: I need help on this please.

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge: Learn Accessibility by Building a Quiz - Step 46

Link to the challenge:

Please post your code here. We don’t see what is an issue.

li > a {
color: contrast(7/1);

}
“the question is requesting me to give the “a” element color property. and the contrast ratio property is 7:1. the above is my solution but it’s not going through”

You should add a color with the required contrast. Play a bit around with this tool to get accustomed to color contrast, and you can also get the desired contrast ratio for this challenge:
https://contrast-ratio.com/

https://webaim.org/resources/contrastchecker/

Refer to this website above.

  1. Check the background color of header
  2. Apply background color to contrastchecker
  3. Adjust Foreground Color
  4. Then you will be able to find the color that you want to know.