Build a Survey Form user story#8

Tell us what’s happening:

  • User Story #8: If I enter non-numbers in the number input, I will see an HTML5 validation error.

Your code so far

FORM

survey form

 <form id="survey-form">
   <p id="description">Let us know how we can improve freeCodeCamp</p>
   <div>
     <label id="name-label" for="name">* Name:</label>
     <input id="name" type="text" name="name" placeholder="enter your name" required>
   </div>
   <div>
     <label id="email-label" for="email">* Email:</label>
     <input id="email" type="email" name="email" placeholder="enter your email" required>
   </div>
   <div>
     <label id="number-label" for="number">* Age:</label>
     <input id="number" type="namber"  name="age" min="1" max="125" placeholder="Age" required>
   </div>
   <br>
   
   <label for="role">Which option best describes your current role?</label>
   <select id="dropdown" name="role">
     <option value="student" selected>Student</option>
     <option value="full time job">full time job</option>
     <option value="full time leaner">full time leaner</option>
     <option value="prefer not to say">prefer not to say</option>
     <option value="other">other</option>
   </select><br><br>
   
   <div><label for="recommand">How likely is that you would recommend freeCodeCamp to a friend?</label><div>
   <input type="radio" name="recommand" value="definitely">Definitely<br>
   <input type="radio" name="recommand" value="maybe">Maybe<br>
   <input type="radio" name="recommand" value="not sure">Not sure<br><br><br>
   
   <p> Things that should be improved in the future

(Check all that apply):


Front-end Projects

Back-end Projects

Data Visualization

Challenges

Open Source Community

Gitter help rooms

Videos

City Meetups

Wiki

Forum

Additional Courses
   <textarea name="message" rows="15" cols="30" placeholder="enter your message...."></textarea><br>
   <button id="submit" type="submit">Submit</button>
   
   
   
 </form>
**Your browser information:**

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

Link to the challenge:

You have a typo. It should be number in type.

merci pour votre aide, j’ai perdu beaucoup de temps avant de le constater

1 Like

vous êtes le bienvenu

1 Like