Build a Survey Form: User Story #8

Build a Survey Form: User Story #8
0

#1

Tell us what’s happening:
Hi folks,

I have completed the survey form and believe all tests should be running, but somehow 2 tests still don’t run, here is my codepen:

<h1 id="title">Website Feedback Survey</h1>

<form id="survey-form">
	<p id="description">Fill the fields below to let us know how we can make things better for our users</p>
	<label for="name" id="name-label">Name:</label>
	<input type="name" id="name" placeholder="Enter full name">
	
	<label for="email" id="email-label">Email:</label>
	<input type="email" id="email" placeholder="Enter email address">
	
	<label for="age" id="number-label">Your age:</label>
	<input type="number" name="age" id="number" min="1" max="150" placeholder="Enter your age">
	
	<label for="dropdown">What do you like the most about our site?</label>
	<select name="dropdown" id="dropdown">
		<option disabled="" selected="" value="">Select an option</option>
		<option value="">Content</option>
		<option value="">User Interface</option>
		<option value="">Interactivity</option>
	</select>
	
	<fieldset>
		<legend>How likely are you to recommend us to your friends?</legend>
		<input type="radio" name="gender" value="highly"> Highly Likely<br>
    <input type="radio" name="gender" value="somewhat"> Somewhat Likely<br>
    <input type="radio" name="gender" value="unlikely"> Highly Unlikely
	</fieldset>
	
	<fieldset>
		<legend>Things that should be improved:</legend>
		<input type="checkbox" name="ui" value="user-interface"> User Interface <br>
		<input type="checkbox" name="content" value="content"> Content <br>
		<input type="checkbox" name="interactivity-level" value="interactivity-Level"> Interactivity Level <br>
		<input type="checkbox" name="animations" value="animations"> Animations <br>
	</fieldset>
	
	<p>Further Comments</p>
  <textarea name="comments" id="comments" cols="30" rows="10"></textarea>
	
	<button type="submit" id="submit">
		Submit
	</button>
	
</form>```
**Link to the challenge:**
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-survey-form

#2

Both your input element with id=“name” and id=“email” are missing something you learned in the following challenge.

https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/use-html5-to-require-a-field

Also, although there is no error showing, type=“name” is not correct. There is no such value of “name” for the type attribute. Also, all input elements should have a name attribute.


#3

@RandellDawson thanks so much :slight_smile: