Learn Accessibility by Building a Quiz - Step 38

Tell us what’s happening:

whats wrong with my code
its telling me to add the “for” element but its already there

Your code so far

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

            <div class="question-block">
              
            </div>
            <div class="answer">
              <select required id='select' name='select'>
                <label for='select'>Can the CSS margin property accept negative values?</label>
                <option value="">Select an option</option>
                <option value="yes">Yes</option>
                <option value="no">No</option>
              </select>
            </div>

<!-- 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/130.0.0.0 Safari/537.36

Challenge Information:

Learn Accessibility by Building a Quiz - Step 38

Hello and welcome to the forum @kimo989yt !

It appears you have moved the label from its original place within the question block which is causing it to fail. Here is what we begin with on this step.

 <div class="question-block">
              <label>Can the CSS margin property accept negative values?</label>
            </div>
            <div class="answer">
              <select required>
                <option value="">Select an option</option>
                <option value="yes">Yes</option>
                <option value="no">No</option>
              </select>
            </div>

Suggestion: Reset the step. (It will not reset any previously completed steps.)
You did a good job of following the instructions.
It is just that the label has been moved.

I hope this helps you.

Wishing you good progress on your coding journey. :slightly_smiling_face: