Survey Form - Build a Survey Form

Tell us what’s happening:

My main problem is within . The other two label elements pass and the name-label does too when I change all the email to name but does not run once back in place. Can someone please look at this to check for any discrepancies, I cannot see a difference and no matter what I do it won’t pass in that in that location.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
  <h1 id="title">Title</h1>
  <p id="description">Description</p>
</head>
<body>
  <form id="survey-form" name="survey-form"> <select id="dropdown"/>
    <option value=""></option>
    <option value="1"></option>
    <option value="2"></option>
    <label id="name-label" name="name-label">Enter Your Name: <input id="name" type="name" name="name" placeholder="Enter your name" required /></label> 
    <label id="email-label" name="email-label">Enter Your Email: <input id="email" type="email" name="email" placeholder="Enter your email" required /></label>
    <label id="number-label" name="number-label">Enter Your Number: <input id="number" type="number" name="number" min="0" max="99999999999 " placeholder="Enter your number" required /></label>
    </form>
  
</body>
</html>
/* file: styles.css */

Your browser information:

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

Challenge Information:

Survey Form - Build a Survey Form

Everything in the name-label doesn’t pass. Sorry if that wasn’t clear.

The <select> is not an auto-closing tag. This tag must always be closed. For example, instead of using the code immediately below to create a dropdown with the options “Zero”, “One” and “Two”:

<select id=“dropdown” />
  <option value=“0”>Zero</option>
  <option value=“1”>One</option>
  <option value=“2”>Two</option>

You could use the following code:

<select id=“dropdown”>
  <option value=“0”>Zero</option>
  <option value=“1”>One</option>
  <option value=“2”>Two</option>
</select>

Thank you so much, I don’t know how I missed that.

2 Likes