Survey Form - Build a Survey Form

Tell us what’s happening:

At the 43rd test-line, #submit, I put , but couldn’t pass the test, I am not clear on it

Your code so far

<!-- file: index.html -->
<DOCTYPE html>
  <html lang="en">
    <head></head>
    <title></title>
    <style>
     <link rel="stylesheet" href="styles.css">
     h4 {
       display:inline;
     } 
    </style>
    <body>
      <h1 id="title"> Ruhe long and flat prodcuts consultancy pls survey form</h1>
      <p id="description"> This is a survey form to assess needs of potential assocaiate consultants who are willing to work with Ruhe plc in freelancers </p>
      <form id="survey-form" >
       <h3> Selection of freelance or full-time working option</h3>
       <input type="radio" name="Interest" id="yes" value="value"/> I want to work with Ruhe as associate on freelance basis<br> 
    <input type="radio" name="Interest" id="no" value="value" /> I want to work with Ruhe as associate consultant on full-time basis <br>
     <h3>Area of speciality<h4>(Tick All that apply to you)</h4></h3>   
<input type="checkbox" name="Interest" id="no" value="value" /> Economics <br>
<input type="checkbox" name="Interest" id="no" value="value" /> Manufacturing Technology <br>
<input type="checkbox" name="Interest" id="no" value="value" /> Industrial Engineering <br>
<input type="checkbox" name="Interest" id="no" value="value" /> Mechanical Engineering <br>
<input type="checkbox" name="Interest" id="no" value="value" /> Electrical Engineering <br>
<input type="checkbox" name="Interest" id="no" value="value" /> Marketing <br>
<input type="checkbox" name="Interest" id="no" value="value" /> Business managment <br>
<input type="checkbox" name="Interest" id="no" value="value" /> Human Resource <br>
<input type="checkbox" name="Interest" id="no" value="value" /> Other <br><input type="textarea" 
  <input type="textarea" />  
  <input Type"button" id=submit    
<label id="name-label">What is your name?</label>
  <select type="dropdown" id="dropdown"> 
    <option>Mr</option>
    <option>Ms.</option>
    <option>Dr.</option>
    <option>Dr-Ing.</option>
    <option>Ing.</option></select>
<input id="name" type="text" required placeholder=" Enter your Name here"/>
<label id='name-label'
        </label>
<label id="email-label"> 
  <select id="radio">
          <option>yahoo</option>
           <option>gmail</option>
            <option>hotmail</option> 
  <input id="email" type="email" required placeholder=" Enter your email here"/ > </label>
<label id="number-label">Your Age:
<input id="number" min="10" max="100"required placeholder=" Enter your Age" type="number"/>
<textarea raws="10" cols="20"> </textarea>
</label>
 <input id="button" type="Submit" value="Submit"/>
      </form>
    </body>
    </html>
/* 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/131.0.0.0 Safari/537.36

Challenge Information:

Survey Form - Build a Survey Form

should have a type of submit

You have a type of “Submit”, do you see the difference?

also there is an other one here

the id can be used only once. Delete one of the two, and add the missing attributes


also you could use an html validator like Ready to check - Nu Html Checker, you have some issues that should be addressed

1 Like

I put this way,

<input type="submit" value="submit"/>

, but still not working

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Where is the id attribute?

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

and what do the tests say of that?

Your #submit should have a type of submit

and how many times do you have id="submit" in your code?

2 Likes

I got it! my problem was giving " id=‘submit’ " twice.

1 Like