Survey Form Project -- Help with Labels, Please!


I keep getting 16/17 with my Survey Form. It’s something to do with the labels.

The test says:

"## 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: id=“name-label”, id=“email-label”, and id=“number-label”.

#name-label should contain some text : expected 0 to be above 0 AssertionError: #name-label should contain some text : expected 0 to be above 0"

I don’t know what this means. Please help!

Welcome, Alno.

The point of the label element is to describe/label a nested (not always, but usually) element. In order to do this, you need to add text to the element:

<label for="name" id="name-label">Name
      <input type="text" id="name" required placeholder="Please input your name">

Hope this helps


Thanks for your reply! I’ve made it work now. I’ll need to do more work to really understand labels.