Build a Survey Form Project - Build a Survey Form

Tell us what’s happening: trying to submit my first certificate project but its giving an unidentified error i cant identify

Error_reads: #name should have an input

/* file: index.Ext.html */


<!DOCTYE html>
<html>
<head>
  <title>
    A Survey Form
  </title>
  <link rel="stylesheet" href="styles.css" >
</head>
<body>
  <h1 id="title" >A Survey Form</h1>
  <p id="description" >Thanks for taking time to help us improve the platform</p>
  <form id="survey-form">
    <label>Name:<input id="name" type="text" placeholder="Name"></label><br>
    <label>Email:<input id="email" placeholder="Email"></label>
    <label>Age:<input id="number" min="0" max="9" placeholder="Number"></label>
    <select id="dropdown">
      <option>option2</option>
      <option>option1</option> 
    </select>
    
      <input value="test1"  name="test" type="radio" />
      <input value="test2"  name="test" type="radio" />   

      <input value="checkbox1"  name="checkbox1" type="checkbox" />
      <input value="checkbox2"  name="checkbox2" type="checkbox" />  
      <input value="checkbox3"  name="checkbox3" type="checkbox" />
      <br>
      <textarea> </textarea>
      <br>
      <button id="submit">Submit</button>
  </form>
</body>
</html>
     
    
    
    


    
    



    









    



/* file: styles.Ext.css */


<!DOCTYE html>
<html>
<head>
  <title>
    A Survey Form
  </title>
  <link rel="stylesheet" href="styles.css" >
</head>
<body>
  <h1 id="title" >A Survey Form</h1>
  <p id="description" >Thanks for taking time to help us improve the platform</p>
  <form id="survey-form">
    <label>Name:<input id="name" type="text" placeholder="Name"></label><br>
    <label>Email:<input id="email" placeholder="Email"></label>
    <label>Age:<input id="number" min="0" max="9" placeholder="Number"></label>
    <select id="dropdown">
      <option>option2</option>
      <option>option1</option> 
    </select>
    
      <input value="test1"  name="test" type="radio" />
      <input value="test2"  name="test" type="radio" />   

      <input value="checkbox1"  name="checkbox1" type="checkbox" />
      <input value="checkbox2"  name="checkbox2" type="checkbox" />  
      <input value="checkbox3"  name="checkbox3" type="checkbox" />
      <br>
      <textarea> </textarea>
      <br>
      <button id="submit">Submit</button>
  </form>
</body>
</html>
     
    
    
    


    
    



    









    



Your mobile information:

Infinix X655C - Android 10 - Android SDK 29

Challenge: Build a Survey Form Project - Build a Survey Form

Link to the challenge:

You have several kinks to work out, but as far as the name input goes, you need to give it a required attribute.

A required attribute looks like this:

<input required>

Keep it up!

1 Like

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