Learn Accessibility by Building a Quiz - Step 32

Tell us what’s happening:

hello I hope you are well in fact I have a problem with my code I don’t know what is wrong and yet I followed the instructions correctly I think

Your code so far

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

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

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Learn Accessibility by Building a Quiz - Step 32

" Then, give the input elements a value matching the text."

Which elements did you add the value attribute to?

And the value attribute needs to match the text.

1 Like

sorry I didn’t understand I’m French speaking that’s why I have a lot of trouble really understanding the meaning of the sentences but I manage

1 Like

Je comprends. No need to apologize. My wife is fluent in French, but not me. I have to rely on Google translate :slightly_smiling_face:

1 Like

ah well that’s great, with time you’ll get there and thank you for understanding

Check your value attributes "true" and label text false. That’s both should be matching.
@mamadou.faye44

1 Like

can you give me an example please I didn’t understand your explanation enough

Read the instructions carefully:
give the input elements a value matching the text.

The text should either be True or False.
@mamadou.faye44

1 Like

also the value attribute should be in the input element not the label

1 Like

thank you very much I had to start with a capital letter that was the problem :blush:

thank you very much I had to start with a capital letter that was the problem :smile: :blush: