Survey Form - Build a Survey Form

Tell us what’s happening:
donw know how to proceed further…stuck at the step of adding textarea with id of submit…it keeps on asking that its not descendant of survey form

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>

<html Lang="en">
<head>
  <title>freeCodeCampSurveyForm</title>
  <meta charset="UTF-8">
</head>

<body>
  <h1 id="title">freeCodeCamp Survey Form</h1>
  <p id="description">Thank you for taking the time to help us improve the platform</p>
  <form id="survey-form">
    <label id="name-label"><input type="text" id="name" required placeholder="Enter your name">/></label>
   <label id="email-label"><input id="email" type="email" required placeholder="Enter your Email" >/></label>
   <label id="number-label"><input id="number" type="number" min="10" max="99" placeholder="Age">/></label>
   <select id="dropdown">
    <option><input type="radio" value="Definitely" name="recommend"></option>
    <option><input type="radio" value="maybe" name="recommend"></option>
    <option><input type="checkbox" value="front-end-project"></option>
    <option><input type="checkbox" value="back-end-project"></option>
    <textarea><input id="submit" type="submit"></textarea>
      </select>
  </form>
</body>
/* 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/115.0.0.0 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

<textarea><input id="submit" type="submit"></textarea>

This is not valid HTML. Textareas cannot have inputs inside of them.

Also, the textarea cannot be inside of a select.

<option><input type="radio" value="Definitely" name="recommend"></option>

This is not valid either. Options cannot have inputs inside of them.

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