Learn Accessibility by Building a Quiz - Step 29

Tell us what’s happening:

Somehow this is bugged, even though I EXACTLY copied and pasted the list from the next step, the same error still appears: You should nest one label element within the first li element

Your code so far

<!-- file: index.html -->
<!-- User Editable Region -->

              <ul class="answers-list">
                <li></li>
                <li></li>
              </ul>
            </fieldset>
          </div>
          <div class="question-block">
            <h3><span class="sr-only">Question</span>2</h3>
            <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>
                    <input type="radio" />
                  </label>
                </li>
                <li>
                  <label>
                    <input type="radio" />
                  </label>
                </li>
              </ul>

<!-- User Editable Region -->
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

Challenge Information:

Learn Accessibility by Building a Quiz - Step 29

There are four <li> elements. Two at the top are missing the nested label/inputs.

2 Likes

this list here you did not add nothing

Thanks to both of you, I hadn’t realized