Issue question basic-css-by-building-a-cafe-menu/step-80

I found an issue in

“Change the color of the footer Visit our website link to be grey when a user has visited the link.”

The test want as result

a:visited {
    color: grey;
}

but the question want:

footer a:visited {
    color: grey;
}

recommendation: change the question.

Hi there!

The test is specific about the challenge instructions. The instructions is correct. Because their is no other element than footer, who have an anchor element within it in the html file for the curriculum challenges.

When you need to style a nested element, and it have not any duplicate within the file, you can style it directly without declaring it’s parent selector.

While the current challenge instructions are specific to the footer links due to the provided HTML file, rephrasing the question to target all visited links will still be effective in teaching users how to apply CSS selectors. Although there are no other anchor elements in the current file, this adjustment will help users understand the broader application of CSS rules in real-world scenarios.

1 Like