Why is this test failing?

User Story #4: Inside the form element, I am required to enter my name in a field with id="name" .

My code:
<form id="survey-form">
  <label for="name">Name:</label>
  <input type="text" id="name" name="name">
</form>

Result:
Name input field should be required : expected false to be truthy
AssertionError: Name input field should be required : expected false to be truthy

Thank you!

How do you make an <input> required? If you can’t remember then just google ‘html input required’.

Thank you. I overlooked the “required” in the user story. I appreciate it. It passed

<form id="survey-form">
  <label for="name">Name:</label>
  <input type="text" id="name" name="name" required>
</form>

it’s really useful to look at the test, it says you need it to be required

I understand. Thanks :wink: