Quick question regarding survey project

  • User Story #4: Inside the form element, I am required to enter my name in a field with id="name" .
    User story #14: 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" .
    Doesn’t this user stories contradict one another since I am unable to use more than one id one a single element. . I know this is most likely a dumb question and I am missing something very obvious so I apologise in advance for that. All help is appreciated

you don’t give each elements all of those ids. Each element gets the appropriate id

<label class="label" id="name-label" for="name" >Name</label>
<input autofocus id="name" type="text" name="Name" required maxlength="50" class="input-field" placeholder="Please enter your name" >
<label class="label" id="email-label" for="email" >Email</label>..........
1 Like