Learn Accessibility by Building a Quiz - Step 37

I have been trying this for so long .If someone could help me I will be so glad

My code so far

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

Your browser information:

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

Challenge: Learn Accessibility by Building a Quiz - Step 37

Link to the challenge:

It says I should give the first option element a text content of Select an option .

You are setting a text attribute. Text content is the text that goes between the opening and closing tags.

1 Like

Hello!
The text should be between the opening and closing option elements. I think there was a misunderstanding of the instructions. Where it says text should be added, it means between the opening and closing elements, not inside one of them.
The select element needs to be made to require an option.

Hope this helps you.

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

I tried this it didn’t work

Here is an example using choose instead of select and one in place of option.
< div class = " answer “>
< choose required >
< one value=”" >Text goes in here< /one >
< one value = “now”>Now < /one >
< one value = “later”>Later< /one >
< /choose >
< / div>
I hope this helps you solve your problem.

1 Like

Thank you so much :joy:it worked

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