Survey Form - Build a Survey Form

Hello,

I am currently working on the Build a Survey Form task and have encountered an issue regarding the input for the id
specifically it says this: Failed:Your #name should require input.
same issue with the email input.

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>

    <h1 id="title">Games Of Life Video Survey</h1>

    <p id="description">Thankyou very much for taking the time to complete this survey.</p>

  <form id="survey-form">
    <label for="name">Enter Your Name: <input id="name" type="text" /></label>
        
        <label for="email">Enter Your Email: <input id="email" type="email" /> </label>
        <label for="new-password">Create a New Password: <input id="new-password" type="password" /></label>
   





  </form>
/* 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/112.0.0.0 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

MDN: HTML attribute: required

1 Like

i dont get it. i have set the attribute to what it is.

This is the HTML for your #name input:

<input id="name" type="text" />

I do not see the required attribute on that input.

2 Likes

Just add the required attribute for the name and email.

1 Like

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