Survey Form - Build a Survey Form

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8"
    <h1 id="title">Fan Page</h1>
    <link rel="stylesheet" href="styles.css">
        <p id="description">what you want to choose?<p>
          <form id="survey-form">
<label id="name-label"> Enter your name: 
  <input for="name" id="name" type="text" name="name" placeholder="name">
  <label id="email-label">
 Enter you email:<section></section> <input for="email" id="email" name="email" type="email" placeholder="email" 
    <label id="number-label">
        <input for="number" min="10" max="99" name="number" id="number" type="number" placeholder="number"> </label>
<label for="referrer">
      </section>Choose character: 
        <select for="dropdown" id="dropdown">
          <option value="">(choose)
    <option>Hallo Kitty</option>
      <option>My Melody</option>
    Color: </legend>
  <input for="pink" name="pink" id="pink" type="radio" class="pink" value="radio"> Pink</label>
  <label><input for="purple" name="purple" id="purple" type="radio" class="purple" value="radio"> Purple</label>
  <legend>Where do you watch cartoons
  <label><input for="TV" name="TV" id="TV" type="checkbox" value="checkbox"> TV
    <label><input for="computer" name="computer" id="computer"
type="checkbox" value="checkbox"> Computer<section></section>

<label for="dreams">

  <textarea id="dreams" name="dreams" rows="3" cols="30" placeholder="you thinking"></textarea>
    <input id="submit" type="submit"></label>

/* file: styles.css */
  font: Fantasy;
  text-align: center;
  margin: auto;

  background-color: rgb(125,0,50,40%);
  color: black;
  font-size: 20px;
  background-color: rgb(110,0,60,30%);
  font-size: 15px;
  margin: 5px;
  font: Tahoma;
  text-align: center;
  border: none;
  margin: 7px;
.pink, .purple{
  font-size: 10px;


Your browser information:

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

Challenge Information:

Survey Form - Build a Survey Form

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Your #name should require input.
Every radio button group should have at least 2 radio buttons.
I don’t know what to do ?

Welcome to the forum @melansek2003

Your input button for name needs the attribute which requires input before the form can submit.

Then, add two more radio buttons.

Happy coding

Put the same value with the name attribute in the input type radio.


Put this into both input radio

thank you, but what I need to do with:
Your #name should require input.?
I have input in name

1 Like

You code have lots of section tags , that didn’t required in the code . Please remove the extra section tags from your code.

Section example


<-- your all section elements(label, input etc) goes here -->


That means you name label, between the name label you should nest an input element with id appropriate attributes.