Learn Accessibility by Building a Quiz - Step 38

I am attempting to link the “label” element to the “select”. But the code i have written is not passing. I am still being told to give the “select” element a “name” attribute, which I have clearly done. Please i need a hint on what to do. Thank you.

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

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge: Learn Accessibility by Building a Quiz - Step 38

Link to the challenge:

The ‘name’ attribute is like the ‘id’ attribute in the line above. Add it after the id:

<select id="name" attribute="value" required>

The “value” can be whatever you want, but it should be associated with the content of the element (it is a good practice).

The id is called attribute and the name is called the value

So you need attribute which is called name and give the value that you think suitable for it

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