Learn Accessibility by Building a Quiz - Step 67

Tell us what’s happening:
Test

Sorry, your code does not pass. Don’t give up.

Hint

You should give the second a element a single-letter accesskey.

question:
Finally, the navigation accessibility can be improved by providing keyboard shortcuts.

The accesskey attribute accepts a space-separated list of access keys. For example:

<button type="submit" accesskey="s">Submit</button>

Give each of the navigation links a single-letter access key.

Note: It is not always advised to use access keys, but they can be useful

Your code so far

WARNING

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.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge: Learn Accessibility by Building a Quiz - Step 67

Link to the challenge:

We need to see the code that you have. In order to show code here nest it in triple backticks like so:

backtick x3
code
backtick x3

The backtick is located between the esc and tab buttons on most keyboards.

1 Like
          <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>```

Okay all you need to do is add accesskey="x" to the existing a element. Each asccess key should be unique.

1 Like

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