Accessibility Form: Correct selectors do not pass

Tell us what’s happening:
I’m pretty sure that nav > ul > li > a is a valid way of selecting the anchor elements but it doesn’t pass the tests. The hint insists that I use li > a

Your code so far

nav > ul > li > a {
	color: white;
}

Your browser information:

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

Challenge: Step 45

Link to the challenge:

Change the font color of all the anchor elements within the list elements to something with a contrast ratio of at least 7:1.

It didn’t say that it was specific to the navbar. On a large page, you may have more that one section that that describes. They even tell you what selector to use in the hint when you don’t pass.

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