Learn Accessibility by Building a Quiz - Step 40

Tell us what’s happening:

Sorry, your code does not pass. Hang in there.

You should give the label element a for attribute matching the id of the textarea element.

Now I am not sure what’s a matching 'id to ‘for’ I should insert. Please help.

Your code so far

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Safari/605.1.15

Challenge Information:

Learn Accessibility by Building a Quiz - Step 40

Hi! To help you share your code, please

Please help, that would be great. Thank you

By the way here is the topic & question below:

Topic: Learn Accessibility by Building a Quiz - Step 40
Question: # Step 40

As with the other input and label elements, link the textarea to its corresponding label element, and give it a name attribute.

My code below:

Do you have any questions:

And response I get below:

Sorry, your code does not pass. Keep trying.

You should give the label element a for attribute matching the id of the textarea element.

It seen it does’t share the code. How can I be able to share code so you can see the problem and be able to assist?

Copy and paste your code with three ``` back ticks before and after your code in a separate line, Then we can see your code.

A <label> element have for attribute that match the “id” of associated form element. For example if a <textarea> has id of “user-message” then the <label> must have for attribute with the value “user-message”.

2 Likes

Thank you, I have got it now.

1 Like

Noted with thanks… .

1 Like

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