Learn Accessibility by Building a Quiz: Nest label within list element, step 29

Requirement: Within each list element, nest one label element, and within each label element, nest one input element with the appropriate type .

             <ul class="answers-list">
               <li>
                  <label>
                    <input type="q1">
                  </label>
                </li>
                <li>
                  <label>
                    <input type="q2">
                  </label>
                </li>
             </ul>

Error: You should nest one label element within the first li element.
What is the issue?

   **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

Challenge: Step 29

Link to the challenge:

HI @sahilbutani !

Welcome to the forum!

There are two places in the code where you need to add these labels and inputs.
If you are getting that error message, that means you have only added in the second place and not the first place.

Here is the first place you need to add the labels and inputs

       <ul class="answers-list">
                <li></li>
                <li></li>
              </ul>
            </fieldset>

You also have another issue here

Those are not valid input types.

Please reread the hint they gave you because it tells you which input type to use.

Hope that helps!

please help

<ul class="answers-lists">
  <li>
     <label>
        <input type="text"/>
     </label>
  </li>
  <li>
    <label>
       <input type="text"/>
    </label>
</li>
</ul>

Mod Edit: SOLUTION REMOVED

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

2 Likes