Survey Form - Build a Survey Form

Tell us what’s happening:
I cant seem to get a checkmark on this task;
“Your #name-label should contain text that describes the input.”
can anyone help me out please :slight_smile:

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
<head class="header">
<link rel="stylesheet" href="styles.css">
<h1 id="title">Book Reader Survey</h1>
</head> 

<body>
<p id="description">Please Fill Out All The Boxes Listed With Accurate Information. Thank You, And Enjoy!</p>
<form id="survey-form">


<input id="name" type="text" placeholder="Jane Doe" required><label id="name-label" text="name"></label>Enter your name</input>

<input id="email" type="email" for="email" required placeholder="abcd@gmail.com"><label id="email-label" text="email"></label>Enter your email</input>

<p>How many books do you read in a month?</p>
<input id="number" for="number" min="0" max="99999" placeholder="4" type="number"><label id="number-label" text="number"></label></input>

<p>Do you like Fiction or Nonfiction books?</p>
<input type="radio" name="genre" value="Fiction"/>Fiction
<input type="radio" name="genre" value="Nonfiction"/>Nonfiction 


<p>What genre do you like the best? (fiction)</p>
<select id="dropdown">
<option value="Horror/Thriller">Horror/ Thriller</option>
  <option value="Romance">Romance</option>
    <option value="Contemporary/ YA Fiction">Contemporary/ YA Fiction</option> 
      <option value="Translated Fiction">Translated Fiction</option> 
      <option value="Coming of Age/ Manga">Coming of Age/ manga</option>  
      <option value="N/A">N/A</option>
</select>

<p>What genre do you like the best? (nonfiction)</p>
<select id="dropdown">
<option value="True Crime">True Crime</option>
  <option value="Self Help">Self Help</option>
    <option value="Memoir">Memoir</option> 
      <option value="Social Sciences">Social Sciences</option> 
      <option value="Historical">Historical</option>
      <option value="N/A">N/A</option>
</select>

<p>Where do you get your books from? (select all that apply)</p>
<input type="checkbox" value="Barnes n' Nobel"/>Barnes n' Nobel
<input type="checkbox" value="Half Priced Books"/>Half Priced Books
<input type="checkbox" value="Audible"/>Audible
<input type="checkbox" value="Local Bookstore"/> Local Bookstore 
<input type="checkbox" value="Other"/>Other

<p>What books do you think everyone should read?</p>
<textarea id="response" name="response" placeholder="Type your response here"></textarea> 

<p>Thank You For Completing This Survey, Happy Reading!</p>
<input id="submit" type="submit" value="Submit Survey"/>
</form>
</body>
/* file: styles.css */

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

If you look at the tests themselves, they will tell you exactly what they want. I would advise reading over the tests again. This one got me too.

Edit: Apologies misread something. I would doublecheck on where exactly you have your label closing tag for the elements that are failing. Also <input> is a self-closing tag.

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