How do I set the contrast ratio to 7:1? Please Help me I`m stuck on step 45

Tell us what’s happening:

Your code so far

Step 45

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.


<h1>HTML/CSS Quiz</h1>
      <nav>
        <ul>
          <li><a href="#student-info">INFO</a></li>
          <li><a href="#html-questions">HTML</a></li>
          <li><a href="#css-questions">CSS</a></li>
			  </ul>
      </nav>
    </header>
    <main>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Step 45

Link to the challenge:

3 Likes

You have to set the color to really bright so for example you can change your links color to white.

9 Likes

Thank you. This helped

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