User Story #10: For the name, email, and number input fields inside the form I can see corresponding labels that describe the purpose of each field with the following ids:
i believe i got it but to refrain from asking too much help i would not like to post up my link. question: is a simple label enough or it’s asking for the other type of label? i did the for attribute and it didn’t work but it did show up in the design of the page
The for attribute and the id attribute are completely different. Any element can have an id attribute. The for attribute applies only to the label element. The value of the for attribute references the id of another element (i.e. a form element).
Yes, you are supposed to add a specific id for each label and also a specific id for each element that the for attribute in the label references.
There are three things going on here:
Adding an id attribute to the form elements (i.e. input, select, checkbox)
Adding an id attribute to the labels for the form elements.
Adding a for attribute in the label elements.
You need to read each user story and then read them again, so you understand exactly what is expected. I do not know what the disconnect is, but as I have stated numerous times already, you need to go back and redo all the Basic HTML section again. You are not using proper syntax, so you are going to continue to struggle through these projects until you force yourself to learn the syntax and learn to validate you have the correct syntax before asking a question. Codepen has a feature named **Analyze HTML) located in the HTML module’s dropdown menu (see below). You can click on it and it will report any issues is finds with syntax.