Build a Survey Form - Build a Survey Form

Tell us what’s happening:

i’m simply stuck at what to do. it’s my second time re-doing this test and it does not allow me to pass even when my code is correct (or so i believe).

the error messages states that “your button element should have a submit type” or that both the text area and button element should be children of the form element, which they clearly are. is there anything wrong with my code?

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Survey Form</title>
  </head>

  <body>

<h1 id="title">title</h1>
<p id="description">description</p>

<form id="survey-form">

<input type="text" id="name"
placeholder="a" required/>

<input type="email" id="email" 
 placeholder="b" required/>

<input type="number" id="number" 
 placeholder="c" min="2" max="2"/>

<label id="name-label">a</label>
<label id="email-label">b</label>
<label id="number-label">c</label>

<select id="dropdown">
<option>a</option>
<option>b</option>
</select>

<input type="radio" name="oi" value="a" />
<input type="radio" name="oi" value="b" />

<input type="checkbox" value="a"/>
<input type="checkbox" value="b"/>


<input type="textarea" id="survey-form"/>

<button type="submit">submit</button>



</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/135.0.0.0 Safari/537.36

Challenge Information:

Build a Survey Form - Build a Survey Form

try using this textarea element

<textarea id=""></textarea>

i did, though? here is what i’ve used;
(i read your comment wrong, sorry)

1 Like

This challenge wants a textarea element, which is different from an input element with a type of textarea. Secondly be sure that every element has the id the challenge asks for.

all of the ids are correct :] my mistake was the wrong textarea format. thank you for your help!