I have been trying to figure out how to add text content to the label elements but nothing i looked up worked. If you know how to add text content please let me know thank you.
"—It is important to link each input to the corresponding label element. This provides assistive technology users with a visual reference to the input.
This is done by giving the label a for attribute, which contains the id of the input.
This section will take a student’s name, email address, and date of birth. Give the label elements appropriate for attributes, as well as text content. Then, link the input elements to the corresponding label elements.—"
When the instructions say to add appropriate text content to each label, they don’t literally mean “textContent”, they mean an short description of what the input is for. The instructions say:
“This section will take a student’s name, email address, and date of birth.”
So the first input is for the student’s name, the second for their email address, and the third for their date of birth. What would be appropriate text to add to the label so that someone filling out this form would know what they are supposed to enter for each input?
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.