Hey there, I am stuck upon this step. I have tried enteriing the code:
<label for ="message">Enter your message</label>
<textarea id="message" rows="3" cols="12"></teaxtarea>
and it is not passing what’s wrong please, help.
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">Enter your message:</label>
<textarea id="textarea" name="message" rows="5" cols="24"></textarea>
</div>
<!-- User Editable Region -->
css
/* 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/137.0.0.0 Safari/537.36
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 Get Help > Ask for Help button located on the challenge.
The Ask for 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.
I don’t think the instructions are incomplete. They say as per other label and input elements, link them. It then says give it a name attribute, the user has to work out what “it” is referring to. Do you think you should amend your post as it gives the answer?
it says " link the textarea to its corresponding label element", that implies adding the necessary attributes, it’s not incomplete, but it’s leaving to the camper to remember how to do that.
The hints guide the camper step by step if they don’t remember how to link the textarea to the label.
I did create an issue for this. I did not think the intent of this instruction was to get the student to figure out they needed to add an id attribute to the textarea element, but rather to figure out how to link the textarea and label elements as they have done in the past. It looked like an oversight to me.
You should use the existing label, not create a new one
@fcc4b6d10c4-b540-4e2 it doesn’t look like the issue is what you were thinking here, I have edited the first post, the code that @saka tried now shows correctly, and it was properly linked… only there is a new label instead of using the existing one
it looks like that when people do not format the code correctly. You can flag a post with Something Else to ask a moderator to format the code if needed