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