Learn Accessibility by Building a Quiz - Step 63

How do I add a contrast ratio of 7:1:

Your code so far


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.

footer, footer a{
  contrast-ratio: (7:1);

Your browser information:

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

Challenge: Learn Accessibility by Building a Quiz - Step 63

Link to the challenge:

The exercise said:

set the font color to a color

Which property sets the font colour?
If not sure, restart the step, and click on the check button and check the hint.

I totally understand the confusion here, the instructions on contrast-ratio aren’t exactly clear in this lesson set. The syntax dictates that you set the color and then set the background color using hexadecimal form(see example below)

As to the ratio if your having trouble I would suggest
trying [Deque Color Contrast Analyzer]

element {
    color: # rrggbb;
    background-color: # rrggbb;

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