Learn Accessibility by Building a Quiz - Step 40

Tell us what’s happening:

here is my code:
but it shows that: you should give the label element a for attribute which is same as id of the textarea element

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">
              <label for="textarea"><textarea id="textarea" name="textarea" rows="5" cols="24" placeholder="Write here..."></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/130.0.0.0 Safari/537.36

Challenge Information:

Learn Accessibility by Building a Quiz - Step 40

Hi and welcome to the forum!
Instead of creating new label link your textarea to the label mentioned above

You need to add for attribute to your first label element. You do not need to add the second label element. Inside the second div, just add textarea element. :slight_smile: