Learn Accessibility by Building a Quiz - Step 40

Tell us what’s happening:

i’ve already added id tag in textarea still it is asking to give the textarea id attributes

Your code so far

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

            <div class="question-block">
              <label>Do you have any questions:</label>
            </div>
            <div class="answer">
              <textarea rows="5" cols="24" placeholder="Who is flexbox..."></textarea>
            </div>
            <div class="answer">
             <label for="comment">
              <textarea id="comment" name="css-questions" rows="5" cols="24" placeholder="Who is flexbox..."></textarea>
            </label>
            </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/126.0.0.0 Safari/537.36

Challenge Information:

Learn Accessibility by Building a Quiz - Step 40

Hello!
You have added additional elements. Reset your code to get the original code back.
Then give your label element a for attribute and a value.
In your textarea element give it an id attribute that matches the for attribute of the label element.
And lastly give your textarea element a name attribute with a value.
Do not add additional elements.

thanks a lot for helping

1 Like