Learn Accessibility by Building a Quiz - Step 37

Tell us what’s happening:
I am a bit confused to say the least… When I hit the “Check my Code” button it gives me this:

Hint: You should give the first option element a text content of Select an option.

Which I do not find helpful… considering I have already done that. I tried looking at other’s questions but none seemed to have the same issue as me.
I don’t see any obvious issues like a lack of closing elements.
Also, I don’t understand why the first option value is = “” , why not value=“select an option”?

Thanks for your help and insight!

Your code so far

 <div class="answer">
              <select required>
                <option value="">Select an option
                  </option>
                  <option value="yes">Yes
                    </option>
                    <option value="no">No
                     </option>
              </select>
            </div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

Challenge: Learn Accessibility by Building a Quiz - Step 37

Link to the challenge:

Adding in the line break here is confusing the tests.

Thank you!

This worked!

Should I keep my closing elements on the same line like below?


                <option value="">Select an option</option>

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