Building A Quiz

I don’t know if anyone elses has ran into this but I do just as the step says to do and hit check your code I get this:

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

Hint

You should place the second label text content after the input element.

But the step says to do this: Give the label elements text such that the input comes before the text. Then, give the input elements a value matching the text.

The text should either be True or False.
Now I’m understanding it to mean put either true or false before the input not after.

<label for="q1-a1">
                   <input type="radio" id="q1-a1" value="true" />
                   True
                  </label>
                </li>
                <li>
                  <label for="q1-a2">
                    False
                    <input type="radio" id="q1-a2"  value="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>
              <ul class="answers-list">
                <li>
                  <label for="q2-a1"> 
                    True
                    <input type="radio" id="q2-a1" value="true" />
                  </label>
                </li>
                <li>
                  <label for="q2-a2"> 
                    False
                    <input type="radio" id="q2-a2" value="false" />
                  </label>
                </li>
              </ul>

```[https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-accessibility-by-building-a-quiz/step-32](https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-accessibility-by-building-a-quiz/step-32)

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Please post a link to the challenge as we don’t know what you are working on without it.

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