Learn Accessibility by Building a Quiz - Step 32

Tell us what’s happening:

I don’t understand where I went wrong here. The input comes before the text and the value matches the text. But it’s not passing. I did search past posts but I didn’t come across anything that shed any light.

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.

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; rv:109.0) Gecko/20100101 Firefox/111.0

Challenge: Learn Accessibility by Building a Quiz - Step 32

Link to the challenge:

We will need to see your actual HTML in order to help you.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.

Oops, when I posted before included the code automatically.

<ul class="answers-list">
                  <label for="q1-a1" value="True">
                    <input type="radio" id="q1-a1" />True
                  <label for="q1-a2" value="False">
                    <input type="radio" id="q1-a2" />False
          <div class="question-block">
            <fieldset class="question" name="html-question-two">
                A label element nesting an input element is required to have a
                for attribute with the same value as the input's id
              <ul class="answers-list">
                  <label for="q2-a1" value="True">
                    <input type="radio" id="q2-a1" />True
                  <label for="q2-a2" value="False">
                    <input type="radio" id="q2-a2" />False

“…give the input elements a value matching the text.”

You added the value attribute to the label elements instead of the input elements.


Thank you for your response. I apparently should not start coding before coffee.

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