Survey Form - Select id dropdown issue - SOLVED

Hello everyone,
I need someone’s help. I’m already desperate.
I am unable to do one task :
“Inside the form element, you should have a select dropdown element with an id of dropdown.”
I rewrited code several times but that didn’t work then I copied someone else’s code and that didn’t work either.
I hope you can help me.

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Registration ...</title>
  <meta charset="utf-8">
  <link rel="stylesheet" href="styles.css">
</head>

<body>
  <h1 id="title">Registration ...</h1>
  <p id="description">...</p>
  <form id="survey-form">
    <fieldset id="dropdown">
      <label id="name-label">Name<input type="text" name="name" required id="name" placeholder="Enter your name"></label>
      <label id="email-label">Email<input type="email" name="email" required id="email" placeholder="Enter your email"></label>
<label id="number-label">Age<input type="number" name="age" id="number" min="1" max="100" placeholder="Enter your age"></label>
<br>
<br>


<label id="dropdown" name="dropdown" class="dropdown">. . .
<select id="dropdown" name="dropdown">
  <option value=""></option>
  <option value="1">1</option>
  <option value="2">2</option>
</select>
</label>


<br>
<br>
<label> <input type="radio" name="1-2" value="1"></label>
<label> <input type="radio" name="1-2" value="2"></label>
<br>
<br>
<label><input type="checkbox" value=" "></label>
<label><input type="checkbox" value=" "></label>
<label><input type="checkbox" value=" "></label>
<label><input type="checkbox" value=" "></label>
<br>
<br>
<label>...</label>
<textarea rows="1" cols="20"></textarea>

<input type="submit" name="submit" id="submit">

    </fieldset>

  </form>
</body>
</html>
  **Your browser information:**

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

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

drop downs by w3
hope it helps

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