Learn Accessibility by Building a Quiz - Step 32

Not passing test

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

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.

Hint

You should give the third input a name attribute.

Wut?

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0

Challenge: Learn Accessibility by Building a Quiz - Step 32

Link to the challenge:

Test

Sorry, your code does not pass. Hang in there.

Hint

You should give the third input a name attribute.strong text

Please edit the post above by putting your code inside its codeblock (seen below)

<li>
              <label for="q2-a1">
                <input name="q2-a1"  type="radio" id="q2-a1" value="true" />
                True
              </label>
            </li>
            <li>
              <label for="q2-a2">
                <input name="q2-a2" type="radio" id="q2-a2" value="false" />
                False
              </label>

to tell the browser that two different radio buttons are related to the same question, you must give the radio buttons a name attribute and then assign their value to the exact same thing (thus indicating they belong to the exact same question)

1 Like

thanks for your help. i’ll take another look.

1 Like