I don't know how to give contrast ratio

On the topic of visual accessibility, contrast between elements is a key factor. For example, the contrast between the text and the background of a heading should be at least 4.5:1.

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

How do I do this?

For this one I took a shot in the dark and typed:

background: white;

This prompted my hint to provide better understanding of what the test was looking for.

1 Like

In addition to the above, some link for you:

1 Like

You ought to do this:

Li > a(make sure u add d spaces in between li and a) {
color: (a bright color of ur choice);
Contrast: 7:1;
}
If it still doesn’t work, skip it and go back to it d next day.

1 Like

Thank you for your help! :grin:

1 Like

Thank youu for helping!

1 Like

Thank youu for your help!

1 Like

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