Learn Accessibility by Building a Quiz - Step 37

Can someone please explain to me what I’m supposed to do here?

Your code so far

            <div class="question-block">
              <label>Are you a frontend developer?</label>
            <div class="answer">
              <select required>
                <option value="">Select an option</option>
                <option value="yes">Yes</option>
                <option value="no">No</option>

Your browser information:

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

Challenge: Learn Accessibility by Building a Quiz - Step 37

Link to the challenge:

you have to link the label element with select element, one way to link label element with an element is to wrap the element with label tags, but here you can not because label is already inside div element. The only other way is to use for attribute for the label with the value oas the value of id of the element.

<label for="">

Like this?

yes but value of for attribute should be as id of select element, you have to give select element id attribute with a value of some text

Thanks for helping me with this question.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.