Learn Accessibility by Building a Quiz - Step 40

Tell us what’s happening:

<div class="question-block">
              <label>Do you have any questions:</label>
            </div>
            <div class="answer">
              <label for="question"></label><textarea id="question" rows="5" cols="24" placeholder="Who is flexbox..."></textarea>
            </div>

Sorry, your code does not pass. You’re getting there.
Hint
You should give the label element a for attribute matching the id of the textarea element.

What am I doing wrong?

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="question"></label><textarea id="question" rows="5" cols="24" placeholder="Who is flexbox..."></textarea>
            </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.4.1 Safari/605.1.15

Challenge Information:

Learn Accessibility by Building a Quiz - Step 40

I found the answer! :slight_smile: