Step 31: Building a Quiz


              <ul class="answers-list">
                <li>
                  <label for="q1-a1" >True or False
                    <input type="radio" id="q1-a1" value="HTML can be fun to learn?" />HTML can be fun to learn?
                  </label>
                </li>
                <li>
                  <label for="q1-a2">True or False 
                    <input type="radio" id="q1-a2" value="HTML can be fun to learn?"/>HTML can be fun to learn?
                  </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" value="<hr></hr>This is an HTML horizontal rule?">True or False
                       <input type="radio" id="q1-a1" value="Tim Bernners-Lee created HTML"/>Tim Bernners-Lee created HTML 
                  </label>
                </li>
                <li>
                  <label for="q2-a2">True or False
                    <input type="radio" id="q2-a2" value="Tim Bernners-Lee created HTML"/>Tim Bernners-Lee created HTML
                  </label>
                </li>
              </ul>

I don’t understand how to solve this step. please some guidance would be nice!

HI @devildog990820 !

I have edited your post to include the challenge.

When posting to the forum, you will receive quick guidance if you include the challenge link and a short description of the issue you are facing.
That way users will know how to best help you.

As for the challenge, I would suggest resetting the lesson.

The challenge wants you to add label text of either True or False.
Not this

You need to write one or the other.
The input needs to come before the label text

Also, the value attribute needs to hold the same value as the label text.

Hope that helps!

It's working! I 've done! after 1 hour in the evening.  :grimacing:
	<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>
1 Like