Tell us what’s happening:
I don’t know what to do here. help says You should give the a elements inside list a color propeerty but i did that
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* User Editable Region */
a,
li {
color: 7:1;
}
/* 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/130.0.0.0 Safari/537.36
Challenge Information:
Learn Accessibility by Building a Quiz - Step 46
Frownd
October 28, 2024, 5:25pm
2
The color property looks off because the value you used isn’t valid. Try changing color: 7:1; to something like color: #0000FF; for blue, or use any hex code.
ILM
October 28, 2024, 5:52pm
3
podgorsek.zan11:
a,
li {
this selects a elements and li elements, it doesn’t select a elements inside li elements
also, you can’t give a ratio as color, you need to choose a color that has that ratio with the background
Hello @podgorsek.zan11 !
Here is a link to a color contrast selector where you can enter the ratio, and it will provide a color contrast pair in hex colors.
https://color.adobe.com/create/color-contrast-analyzer
However, for this exercise, I suggest try using one of your previous hex colors in your code as suggested in the error message.
Hope this helps you.
Wishing you good progress on your coding journey.
ILM
October 29, 2024, 7:37pm
6
li a {
color: #003B4A ;
background-color: #EDFF94 ;
}
you need to change only the font color, not the background color. It needs to have teh contrast with the background set in the body
system
Closed
April 30, 2025, 7:37am
7
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.