Learn Accessibility by Building a Quiz - Step 40

Tell us what’s happening:

You should give the label element a for attribute matching the 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">
                  </textarea>
              </label>
            </div>

<!-- User Editable Region -->
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15

Challenge Information:

Learn Accessibility by Building a Quiz - Step 40

This is the label that corresponds to the textarea.

Please click reset and retry this step.

1 Like

Do you have any questions:

for this label you need to give a for attribute

Please open a new topic for your question

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.