Tell us what’s happening:
trying to pass test for required name and email parts but failed although i added correct syntax with required
Your code so far
<h1 id="title">Survey Form</h1>
<p id="description">Let us know how we can improve freeCodeCamp</p>
<form id="survey-form" method="GET" action="">
<div id="rowTab">
<div id="labels">
<label for="name" id="name">Name:</label>
</div>
<div id="rightTab">
<input type="text" name="name" id="name" placeholder="Enter your name" required>
</div>
</div>
<div id="rowTab">
<div id="labels">
<label for="email" id="email">Email:</label>
</div>
<div id="rightTab">
<input autofocus type="text" email="email" required="" id="email" placeholder="enter your email" class="input-field">
</div>
</div>
</form>
</div>
Your browser information:
Chrome
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36.
I cleaned up your markup and made sure it validates, but I don’t get to test many times in a row before no test will run. now I put your code in a codepen and I cleared my codepen cookies and then logged back in and the tests ran again. Same problem last night. I don’t remember if logging out than in fixed it or if it just started again but clearing cookies definitely worked. The documentation in the forked pen makes it sound like you can code one user story and then test one working your way through the project, but that’s not my experience. The tests just stop working and then I must intervene.
Hi, you should read user story again: " * 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: id="name-label" , id="email-label" , and id="number-label" ."
So id is not “email” should be “email-label”.
Try it and let us know!!