Learn Accessibility by Building a Quiz - Step 32

Tell us what’s happening:

it says to provide the label element with texte content !

Your code so far

              <label for="q2-a2">
                <input type="radio" id="q2-a2" value="false" />
                False
              </label>

Challenge Information:

Learn Accessibility by Building a Quiz - Step 32

You should give all label elements in your code a text and all input tags a value.

1 Like

thank you the problem was a double cotation in the first label, ( it kept saying fourth element though)

1 Like

If you made the changes, let me see your code.

<code>
<!-- its all good now, thanks-->

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

When I ran your code, it passed. Can you reset the lesson and run the same code?

2 Likes

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