Create a Survey Test HTML5 Validation Error

I’m attempting to complete the test for the Build a Survey but I’m apparently missing something under the Name and Email section. Errors are:

5. Inside the form element, I am required to enter an email in a field with id=“email”. If I do not enter an email I will see an HTML5 validation error.

4. Inside the form element, I am required to enter my name in a field with id=“name”. If I do not enter a name I will see an HTML5 validation error.

Hopefully the codepen.io link below works. Thank you.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36

Challenge: Build a Survey Form

 <input id="number" type="number" name="number" placeholder="18" min="18" max="100" required</input>

close your inputs
fix your HTML

every red dot is error…

Thank you. Secondary question: I’ve closed the inputs except for the Age field (line 28), because it wasn’t pushing a test error. If I close it, it still works, but leaving it unclosed does not cause a testing area. Why is that?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.