Learn Accessibility by Building a Quiz - Step 68

Tell us what’s happening:

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.
Step 68
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

Well done. You have completed the Accessibility Quiz practice project.

    </header>
    <main>
      <form method="post" action="https://freecodecamp.org/practice-project/accessibility-quiz">
        <section role="region" aria-labelledby="student-info">
          <h2 id="student-info">Student Info</h2>
          <div class="info">
            <label for="student-name">Name:</label>
            <input type="text" name="student-name" id="student-name" />
          </div>
          <div class="info">

Test
Sorry, your code does not pass. Try again.

Hint
You should give the first a element a single-letter accesskey.
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/107.0.0.0 Safari/537.36

Challenge: Learn Accessibility by Building a Quiz - Step 68

Link to the challenge:

Please show us your code so far so that we can run and check it.

Step 68

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

please show us what you have tried so far by posting your code.

Step 68
Finally, the navigation accessibility can be improved by providing keyboard shortcuts.

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

Submit
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

Well done. You have completed the Accessibility Quiz practice project.

    <ul>
      <li><button type="submit" accesskey="s"><a href="#student-info">INFO</a>/button<></li>
      <li><a href="#html-questions">HTML</a></li>
      <li><a href="#css-questions">CSS</a></li>
    </ul>
  </nav>

Test
Sorry, your code does not pass. You’re getting there.

Hint
You should give the first a element a single-letter accesskey

You are supposed to give accesskey attribute to the a tag.

No need to add a new button tag.

Sorry, please I don’t understand

Thanks, I now understand

1 Like

Thanks :pray: it worked, the question, I think am going overboard

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